ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1345954 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java
Date Mon, 04 Jun 2012 13:20:32 GMT
Author: bodewig
Date: Mon Jun  4 13:20:32 2012
New Revision: 1345954

URL: http://svn.apache.org/viewvc?rev=1345954&view=rev
Log:
vararg calls

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java?rev=1345954&r1=1345953&r2=1345954&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java Mon
Jun  4 13:20:32 2012
@@ -101,8 +101,7 @@ public class TypeAdapterTest extends Bui
 
         public Method getExecuteMethod(Class proxyClass) {
             try {
-                Method execMethod = proxyClass.getMethod(
-                    execMethodName, null);
+                Method execMethod = proxyClass.getMethod(execMethodName);
                 if (!Void.TYPE.equals(execMethod.getReturnType())) {
                     String message =
                         "return type of " + execMethodName + "() should be "
@@ -137,7 +136,7 @@ public class TypeAdapterTest extends Bui
             getProject().setProjectReference(proxy);
             Method executeMethod = getExecuteMethod(proxy.getClass());
             try {
-                executeMethod.invoke(proxy, null);
+                executeMethod.invoke(proxy);
             } catch (java.lang.reflect.InvocationTargetException ie) {
                 log("Error in " + proxy.getClass(), Project.MSG_ERR);
                 Throwable t = ie.getTargetException();



Mime
View raw message