Browse Source

jikes compiles us now

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276828 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 21 years ago
parent
commit
fc0f7222fb
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      src/main/org/apache/tools/ant/IntrospectionHelper.java

+ 5
- 4
src/main/org/apache/tools/ant/IntrospectionHelper.java View File

@@ -177,7 +177,7 @@ public final class IntrospectionHelper implements BuildListener {
// check of add[Configured](Class) pattern // check of add[Configured](Class) pattern
if (args.length == 1 if (args.length == 1
&& java.lang.Void.TYPE.equals(returnType) && java.lang.Void.TYPE.equals(returnType)
&& (name.equals("add") || name.equals("addConfigured"))) {
&& ("add".equals(name) || "addConfigured".equals(name))) {
insertAddTypeMethod(m); insertAddTypeMethod(m);
continue; continue;
} }
@@ -746,7 +746,7 @@ public final class IntrospectionHelper implements BuildListener {


return ( return (
nestedCreators.containsKey(name.toLowerCase(Locale.US)) nestedCreators.containsKey(name.toLowerCase(Locale.US))
&& (uri.equals(parentUri) || uri.equals("")))
&& (uri.equals(parentUri) || "".equals(uri)))
|| isDynamic() || isDynamic()
|| addTypeMethods.size() != 0; || addTypeMethods.size() != 0;
} }
@@ -1327,8 +1327,9 @@ public final class IntrospectionHelper implements BuildListener {
* Internal interface used to create nested elements. Not documented * Internal interface used to create nested elements. Not documented
* in detail for reasons of source code readability. * 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 Method method; // the method called to add/create the nested element

NestedCreator(Method m) { NestedCreator(Method m) {
this.method = m; this.method = m;
} }
@@ -1357,7 +1358,7 @@ public final class IntrospectionHelper implements BuildListener {
* Internal interface used to setting element attributes. Not documented * Internal interface used to setting element attributes. Not documented
* in detail for reasons of source code readability. * 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 Method method; // the method called to set the attribute
AttributeSetter(Method m) { AttributeSetter(Method m) {
this.method = m; this.method = m;


Loading…
Cancel
Save