commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1088155 - /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/Resource.java
Date Sat, 02 Apr 2011 22:06:59 GMT
Author: simonetripodi
Date: Sat Apr  2 22:06:58 2011
New Revision: 1088155

URL: http://svn.apache.org/viewvc?rev=1088155&view=rev
Log:
removed trailing spaces

Modified:
    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/Resource.java

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/Resource.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/Resource.java?rev=1088155&r1=1088154&r2=1088155&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/Resource.java (original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/Resource.java Sat
Apr  2 22:06:58 2011
@@ -27,9 +27,9 @@ import java.util.List;
  * 'Resource' located by discovery.
  * Naming of methods becomes a real pain ('getClass()')
  * so I've patterned this after ClassLoader...
- * 
+ *
  * I think it works well as it will give users a point-of-reference.
- * 
+ *
  * @author Craig R. McClanahan
  * @author Costin Manolache
  * @author Richard A. Sitze
@@ -61,7 +61,7 @@ public class Resource
 //    public void setResource(URL  resource) {
 //        this.resource = resource;
 //    }
-    
+
     /**
      * Get the value of URL.
      * @return value of URL.
@@ -69,7 +69,7 @@ public class Resource
     public URL getResource() {
         return resource;
     }
-    
+
     /**
      * Get the value of URL.
      * @return value of URL.
@@ -81,7 +81,7 @@ public class Resource
             return null;  // ignore
         }
     }
-    
+
     /**
      * Get the value of loader.
      * @return value of loader.
@@ -89,7 +89,7 @@ public class Resource
     public ClassLoader getClassLoader() {
         return loader ;
     }
-    
+
 //    /**
 //     * Set the value of loader.
 //     * @param v  Value to assign to loader.
@@ -97,11 +97,12 @@ public class Resource
 //    public void setClassLoader(ClassLoader  loader) {
 //        this.loader = loader;
 //    }
-    
+
     public String toString() {
         return "Resource[" + getName() +  ", " + getResource() + ", " + getClassLoader()
+ "]";
     }
-    
+
+
     public static Resource[] toArray(ResourceIterator iterator) {
         List<Resource> resourceList = new LinkedList<Resource>();
         while (iterator.hasNext()) {
@@ -109,7 +110,7 @@ public class Resource
         }
         Resource[] resources = new Resource[resourceList.size()];
         resourceList.toArray(resources);
-        
+
         return resources;
     }
 }



Mime
View raw message