commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1089204 - /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/NameDiscoverers.java
Date Tue, 05 Apr 2011 20:22:49 GMT
Author: simonetripodi
Date: Tue Apr  5 20:22:49 2011
New Revision: 1089204

URL: http://svn.apache.org/viewvc?rev=1089204&view=rev
Log:
minor code format

Modified:
    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/NameDiscoverers.java

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/NameDiscoverers.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/NameDiscoverers.java?rev=1089204&r1=1089203&r2=1089204&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/NameDiscoverers.java
(original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/NameDiscoverers.java
Tue Apr  5 20:22:49 2011
@@ -24,16 +24,14 @@ import org.apache.commons.discovery.Reso
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-
 /**
  * Holder for multiple ResourceNameDiscover instances.
+ *
  * The result is the union of the results from each
  * (not a chained sequence, where results feed the next in line.
  */
-public class NameDiscoverers
-    extends ResourceNameDiscoverImpl
-    implements ResourceNameDiscover
-{
+public class NameDiscoverers extends ResourceNameDiscoverImpl implements ResourceNameDiscover
{
+
     private static Log log = LogFactory.getLog(NameDiscoverers.class);
 
     /**
@@ -90,11 +88,14 @@ public class NameDiscoverers
      */
     @Override
     public ResourceNameIterator findResourceNames(final String resourceName) {
-        if (log.isDebugEnabled())
+        if (log.isDebugEnabled()) {
             log.debug("find: resourceName='" + resourceName + "'");
+        }
 
         return new ResourceNameIterator() {
+
             private int idx = 0;
+
             private ResourceNameIterator iterator = null;
 
             public boolean hasNext() {
@@ -124,4 +125,5 @@ public class NameDiscoverers
             }
         };
     }
+
 }



Mime
View raw message