commons-commits mailing list archives

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

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

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

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/DiscoverNamesInFile.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/DiscoverNamesInFile.java?rev=1089189&r1=1089188&r2=1089189&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/DiscoverNamesInFile.java
(original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/DiscoverNamesInFile.java
Tue Apr  5 20:09:01 2011
@@ -33,8 +33,6 @@ import org.apache.commons.discovery.reso
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-
-
 /**
  * Discover ALL files of a given name, and return resource names
  * contained within the set of files:
@@ -47,10 +45,8 @@ import org.apache.commons.logging.LogFac
  * Default discoverer is DiscoverClassLoaderResources,
  * but it can be set to any other.
  */
-public class DiscoverNamesInFile
-    extends ResourceNameDiscoverImpl
-    implements ResourceNameDiscover
-{
+public class DiscoverNamesInFile extends ResourceNameDiscoverImpl implements ResourceNameDiscover
{
+
     private static Log log = LogFactory.getLog(DiscoverNamesInFile.class);
 
     /**
@@ -65,6 +61,7 @@ public class DiscoverNamesInFile
     private ResourceDiscover _discoverResources;
 
     private final String _prefix;
+
     private final String _suffix;
 
     /**
@@ -185,8 +182,11 @@ public class DiscoverNamesInFile
             getDiscover().findResources(fileName);
 
         return new ResourceNameIterator() {
+
             private int idx = 0;
+
             private List<String> classNames = null;
+
             private String resource = null;
 
             public boolean hasNext() {
@@ -242,7 +242,7 @@ public class DiscoverNamesInFile
 
         InputStream is = info.getResourceAsStream();
 
-        if( is != null ) {
+        if (is != null) {
             try {
                 try {
                     // This code is needed by EBCDIC and other
@@ -281,4 +281,5 @@ public class DiscoverNamesInFile
 
         return results;
     }
+
 }



Mime
View raw message