Author: peterreilly
Date: Fri Jul 20 10:51:12 2007
New Revision: 558074

URL: http://svn.apache.org/viewvc?view=rev&rev=558074
Log:
merge of checkstyle changes in IntrospectionHelper

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

Modified: 
ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/IntrospectionHelper.java
URL: 
http://svn.apache.org/viewvc/ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/IntrospectionHelper.java?view=diff&rev=558074&r1=558073&r2=558074
==============================================================================
--- 
ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/IntrospectionHelper.java
 (original)
+++ 
ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/IntrospectionHelper.java
 Fri Jul 20 10:51:12 2007
@@ -70,10 +70,10 @@
 
     // Set up PRIMITIVE_TYPE_MAP
     static {
-        Class[] primitives = { Boolean.TYPE, Byte.TYPE, Character.TYPE, 
Short.TYPE,
-                               Integer.TYPE, Long.TYPE, Float.TYPE, 
Double.TYPE };
-        Class[] wrappers = { Boolean.class, Byte.class, Character.class, 
Short.class,
-                             Integer.class, Long.class, Float.class, 
Double.class };
+        Class[] primitives = {Boolean.TYPE, Byte.TYPE, Character.TYPE, 
Short.TYPE,
+                              Integer.TYPE, Long.TYPE, Float.TYPE, 
Double.TYPE};
+        Class[] wrappers = {Boolean.class, Byte.class, Character.class, 
Short.class,
+                            Integer.class, Long.class, Float.class, 
Double.class};
         for (int i = 0; i < primitives.length; i++) {
             PRIMITIVE_TYPE_MAP.put (primitives[i], wrappers[i]);
         }
@@ -924,7 +924,7 @@
             return new AttributeSetter(m) {
                 public void set(Project p, Object parent, String value)
                         throws InvocationTargetException, 
IllegalAccessException {
-                    m.invoke(parent, (Object[]) new String[] { value });
+                    m.invoke(parent, (Object[]) new String[] {value});
                 }
             };
         }
@@ -937,7 +937,7 @@
                         throw new BuildException("The value \"\" is not a "
                                 + "legal value for attribute \"" + attrName + 
"\"");
                     }
-                    m.invoke(parent, (Object[]) new Character[] { new 
Character(value.charAt(0)) });
+                    m.invoke(parent, (Object[]) new Character[] {new 
Character(value.charAt(0))});
                 }
             };
         }
@@ -957,7 +957,7 @@
                 public void set(Project p, Object parent, String value)
                         throws InvocationTargetException, 
IllegalAccessException, BuildException {
                     try {
-                        m.invoke(parent, new Object[] { Class.forName(value) 
});
+                        m.invoke(parent, new Object[] {Class.forName(value)});
                     } catch (ClassNotFoundException ce) {
                         throw new BuildException(ce);
                     }
@@ -969,7 +969,7 @@
             return new AttributeSetter(m) {
                 public void set(Project p, Object parent, String value)
                         throws InvocationTargetException, 
IllegalAccessException {
-                    m.invoke(parent, new Object[] { p.resolveFile(value) });
+                    m.invoke(parent, new Object[] {p.resolveFile(value)});
                 }
             };
         }
@@ -981,7 +981,7 @@
                     try {
                         EnumeratedAttribute ea = (EnumeratedAttribute) 
reflectedArg.newInstance();
                         ea.setValue(value);
-                        m.invoke(parent, new Object[] { ea });
+                        m.invoke(parent, new Object[] {ea});
                     } catch (InstantiationException ie) {
                         throw new BuildException(ie);
                     }
@@ -1104,7 +1104,7 @@
      *
      * @return the lower-cased method name with the prefix removed.
      */
-    private String getPropertyName(String methodName, String prefix) {
+    private static String getPropertyName(String methodName, String prefix) {
         return methodName.substring(prefix.length()).toLowerCase(Locale.US);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to