You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2012/06/04 15:20:32 UTC
svn commit: r1345954 -
/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java
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();