mbenson 2004/12/16 09:44:28 Modified: src/main/org/apache/tools/ant TaskAdapter.java Log: Mostly javadoc Revision Changes Path 1.33 +6 -11 ant/src/main/org/apache/tools/ant/TaskAdapter.java Index: TaskAdapter.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/TaskAdapter.java,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- TaskAdapter.java 22 Nov 2004 09:23:26 -0000 1.32 +++ TaskAdapter.java 16 Dec 2004 17:44:28 -0000 1.33 @@ -83,10 +83,10 @@ } /** - * check if the proxy class is a valid class to use + * Check if the proxy class is a valid class to use * with this adapter. - * the class must have a public no-arg "execute()" method. - * @param proxyClass the class to check + * The class must have a public no-arg "execute()" method. + * @param proxyClass the class to check. */ public void checkProxyClass(Class proxyClass) { checkTaskClass(proxyClass, getProject()); @@ -101,9 +101,8 @@ public void execute() throws BuildException { Method setProjectM = null; try { - Class c = proxy.getClass(); - setProjectM = - c.getMethod("setProject", new Class[] {Project.class}); + setProjectM = proxy.getClass().getMethod( + "setProject", new Class[] {Project.class}); if (setProjectM != null) { setProjectM.invoke(proxy, new Object[] {getProject()}); } @@ -115,18 +114,14 @@ Project.MSG_ERR); throw new BuildException(ex); } - - Method executeM = null; try { Class c = proxy.getClass(); DispatchUtils.execute(proxy); - return; } catch (Exception ex) { log("Error in " + proxy.getClass(), Project.MSG_VERBOSE); throw new BuildException(ex); } - } /** @@ -141,7 +136,7 @@ /** * Returns the target object being proxied. * - * @return the target proxy object + * @return the target proxy object. */ public Object getProxy() { return proxy;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]