From aa43e37a025cdf54b8914b8283e57419a253ed59 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 4 Jun 2012 13:20:32 +0000 Subject: [PATCH] vararg calls git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1345954 13f79535-47bb-0310-9956-ffa450edef68 --- .../junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java index d85e15616..191acabbf 100644 --- a/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java +++ b/src/tests/junit/org/apache/tools/ant/taskdefs/TypeAdapterTest.java @@ -101,8 +101,7 @@ public class TypeAdapterTest extends BuildFileTest { 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 BuildFileTest { 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();