Browse Source

cast null in method call to allow 1.5 generices to not whine

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@478693 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
ebefa298a1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/ComponentHelper.java

+ 2
- 2
src/main/org/apache/tools/ant/ComponentHelper.java View File

@@ -664,9 +664,9 @@ public class ComponentHelper {
return ((ProjectComponent) o).getProject();
}
try {
Method m = o.getClass().getMethod("getProject", null);
Method m = o.getClass().getMethod("getProject", (Class[]) null);
if (Project.class == m.getReturnType()) {
return (Project) m.invoke(o, null);
return (Project) m.invoke(o, (Object[]) null);
}
} catch (Exception e) {
//too bad


Loading…
Cancel
Save