ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r526547 - /ant/core/trunk/src/main/org/apache/tools/ant/util/ReflectUtil.java
Date Sun, 08 Apr 2007 12:42:41 GMT
Author: jkf
Date: Sun Apr  8 05:42:40 2007
New Revision: 526547

URL: http://svn.apache.org/viewvc?view=rev&rev=526547
Log:
Changes after static code analysis.
code changed

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/util/ReflectUtil.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/ReflectUtil.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/ReflectUtil.java?view=diff&rev=526547&r1=526546&r2=526547
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/util/ReflectUtil.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/util/ReflectUtil.java Sun Apr  8 05:42:40
2007
@@ -160,14 +160,13 @@
         try {
             Method[] methods = o.getClass().getMethods();
             for(int i=0; i<methods.length; i++) {
-                if(methods[i].getName() == methodName) {
+                if(methods[i].getName().equals(methodName)) {
                     return true;
                 }
             }
             return false;
         } catch(Exception t) {
-            throwBuildException(t);
+            throw toBuildException(t);
         }
-        return false;//not reached
     }
 }



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


Mime
View raw message