geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/scanner DeploymentScanner.java
Date Wed, 20 Aug 2003 22:40:01 GMT
dain        2003/08/20 15:40:01

  Modified:    modules/core/src/java/org/apache/geronimo/deployment/scanner
                        DeploymentScanner.java
  Log:
  Cleaned up imports and code style.
  
  Revision  Changes    Path
  1.9       +5 -8      incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/scanner/DeploymentScanner.java
  
  Index: DeploymentScanner.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/scanner/DeploymentScanner.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DeploymentScanner.java	17 Aug 2003 06:09:14 -0000	1.8
  +++ DeploymentScanner.java	20 Aug 2003 22:40:01 -0000	1.9
  @@ -59,24 +59,21 @@
   import java.io.IOException;
   import java.net.MalformedURLException;
   import java.net.URL;
  -import java.net.URI;
  -import java.net.URISyntaxException;
  +import java.util.Collections;
   import java.util.HashMap;
   import java.util.HashSet;
   import java.util.Iterator;
   import java.util.Map;
   import java.util.Set;
  -import java.util.Collections;
   import java.util.StringTokenizer;
  -import javax.management.MBeanRegistration;
   import javax.management.MBeanServer;
   import javax.management.ObjectName;
   import javax.management.relation.RelationServiceMBean;
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -import org.apache.geronimo.jmx.JMXUtil;
   import org.apache.geronimo.common.AbstractStateManageable;
  +import org.apache.geronimo.jmx.JMXUtil;
   
   /**
    * An MBean that maintains a list of URLs and periodically invokes a Scanner
  @@ -98,7 +95,7 @@
   
       public DeploymentScanner(String initialURLs, boolean recurse) throws MalformedURLException
{
           StringTokenizer tokenizer = new StringTokenizer(initialURLs, " \t\r\n,[]{}");
  -        while(tokenizer.hasMoreTokens()) {
  +        while (tokenizer.hasMoreTokens()) {
               addURL(new URL(tokenizer.nextToken()), recurse);
           }
       }
  @@ -185,7 +182,7 @@
   
           Set results = new HashSet();
           Set scannersCopy;
  -        synchronized(this) {
  +        synchronized (this) {
               scannersCopy = new HashSet(scanners.entrySet());
           }
           for (Iterator i = scannersCopy.iterator(); i.hasNext();) {
  
  
  

Mime
View raw message