Browse Source

a little cleanup

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448642 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
48483f3713
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      src/main/org/apache/tools/ant/IntrospectionHelper.java

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

@@ -1270,9 +1270,7 @@ public final class IntrospectionHelper implements BuildListener {
Object create(Project project, Object parent, Object child)
throws InvocationTargetException,
IllegalAccessException, InstantiationException {
if (child != null) {
// Empty
} else {
if (child == null) {
child = constructor.newInstance(
(constructor.getParameterTypes().length == 0)
? new Object[] {} : new Object[] {project});
@@ -1416,7 +1414,7 @@ public final class IntrospectionHelper implements BuildListener {
Object create(Project project, Object parent, Object ignore)
throws InvocationTargetException, IllegalAccessException {
if (!method.getName().endsWith("Configured")) {
method.invoke(parent, new Object[]{realObject});
method.invoke(parent, new Object[] {realObject});
}
return nestedObject;
}
@@ -1429,7 +1427,7 @@ public final class IntrospectionHelper implements BuildListener {
throws InvocationTargetException, IllegalAccessException,
InstantiationException {
if (method.getName().endsWith("Configured")) {
method.invoke(parent, new Object[]{realObject});
method.invoke(parent, new Object[] {realObject});
}
}
};


Loading…
Cancel
Save