ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r478693 - /ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java
Date Thu, 23 Nov 2006 22:34:52 GMT
Author: peterreilly
Date: Thu Nov 23 14:34:51 2006
New Revision: 478693

URL: http://svn.apache.org/viewvc?view=rev&rev=478693
Log:
cast null in method call to allow 1.5 generices to not whine

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java?view=diff&rev=478693&r1=478692&r2=478693
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java Thu Nov 23 14:34:51
2006
@@ -664,9 +664,9 @@
             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



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


Mime
View raw message