jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r897711 - /jakarta/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java
Date Sun, 10 Jan 2010 21:39:38 GMT
Author: dbrosius
Date: Sun Jan 10 21:39:38 2010
New Revision: 897711

URL: http://svn.apache.org/viewvc?rev=897711&view=rev
Log:
no need to call toString on a string

Modified:
    jakarta/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java

Modified: jakarta/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java
URL: http://svn.apache.org/viewvc/jakarta/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java?rev=897711&r1=897710&r2=897711&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java (original)
+++ jakarta/bcel/trunk/src/main/java/org/apache/bcel/util/ClassPath.java Sun Jan 10 21:39:38
2010
@@ -56,6 +56,8 @@
 
     /**
      * Search for classes in given path.
+     * 
+     * @param class_path
      */
     public ClassPath(String class_path) {
         this.class_path = class_path;
@@ -112,7 +114,7 @@
     public boolean equals( Object o ) {
         if (o instanceof ClassPath) {
             ClassPath cp = (ClassPath)o;
-            return class_path.toString().equals(cp.toString());
+            return class_path.equals(cp.toString());
         }
         return false;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


Mime
View raw message