Browse Source

Changes after static code analysis.

code changed

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@526547 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 18 years ago
parent
commit
2e15eb8a03
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/main/org/apache/tools/ant/util/ReflectUtil.java

+ 2
- 3
src/main/org/apache/tools/ant/util/ReflectUtil.java View File

@@ -160,14 +160,13 @@ public class ReflectUtil {
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
}
}

Loading…
Cancel
Save