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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]