stevel 2004/09/07 04:33:15 Modified: src/main/org/apache/tools/ant IntrospectionHelper.java Log: jikes compiles us now Revision Changes Path 1.87 +5 -4 ant/src/main/org/apache/tools/ant/IntrospectionHelper.java Index: IntrospectionHelper.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/IntrospectionHelper.java,v retrieving revision 1.86 retrieving revision 1.87 diff -u -r1.86 -r1.87 --- IntrospectionHelper.java 23 Aug 2004 13:42:19 -0000 1.86 +++ IntrospectionHelper.java 7 Sep 2004 11:33:15 -0000 1.87 @@ -177,7 +177,7 @@ // check of add[Configured](Class) pattern if (args.length == 1 && java.lang.Void.TYPE.equals(returnType) - && (name.equals("add") || name.equals("addConfigured"))) { + && ("add".equals(name) || "addConfigured".equals(name))) { insertAddTypeMethod(m); continue; } @@ -746,7 +746,7 @@ return ( nestedCreators.containsKey(name.toLowerCase(Locale.US)) - && (uri.equals(parentUri) || uri.equals(""))) + && (uri.equals(parentUri) || "".equals(uri))) || isDynamic() || addTypeMethods.size() != 0; } @@ -1327,8 +1327,9 @@ * Internal interface used to create nested elements. Not documented * in detail for reasons of source code readability. */ - private abstract class NestedCreator { + private abstract static class NestedCreator { Method method; // the method called to add/create the nested element + NestedCreator(Method m) { this.method = m; } @@ -1357,7 +1358,7 @@ * Internal interface used to setting element attributes. Not documented * in detail for reasons of source code readability. */ - private abstract class AttributeSetter { + private abstract static class AttributeSetter { Method method; // the method called to set the attribute AttributeSetter(Method m) { this.method = m;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]