ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r448642 - /ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java
Date Thu, 21 Sep 2006 19:26:45 GMT
Author: mbenson
Date: Thu Sep 21 12:26:45 2006
New Revision: 448642

URL: http://svn.apache.org/viewvc?view=rev&rev=448642
Log:
a little cleanup

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java?view=diff&rev=448642&r1=448641&r2=448642
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java Thu Sep 21 12:26:45
2006
@@ -1270,9 +1270,7 @@
         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 @@
             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 @@
                     throws InvocationTargetException, IllegalAccessException,
                     InstantiationException {
                 if (method.getName().endsWith("Configured")) {
-                    method.invoke(parent, new Object[]{realObject});
+                    method.invoke(parent, new Object[] {realObject});
                 }
             }
         };



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message