Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 44236 invoked from network); 2 Apr 2011 22:07:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Apr 2011 22:07:22 -0000 Received: (qmail 53551 invoked by uid 500); 2 Apr 2011 22:07:22 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 53497 invoked by uid 500); 2 Apr 2011 22:07:22 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 53490 invoked by uid 99); 2 Apr 2011 22:07:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Apr 2011 22:07:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Apr 2011 22:07:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4C33623889ED; Sat, 2 Apr 2011 22:06:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1088155 - /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/Resource.java Date: Sat, 02 Apr 2011 22:06:59 -0000 To: commits@commons.apache.org From: simonetripodi@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110402220659.4C33623889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 resourceList = new LinkedList(); while (iterator.hasNext()) { @@ -109,7 +110,7 @@ public class Resource } Resource[] resources = new Resource[resourceList.size()]; resourceList.toArray(resources); - + return resources; } }