ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r481763 - in /ant/core/trunk/src/main/org/apache/tools/ant: IntrospectionHelper.java taskdefs/AntStructure.java
Date Sun, 03 Dec 2006 12:16:58 GMT
Author: peterreilly
Date: Sun Dec  3 04:16:56 2006
New Revision: 481763

URL: http://svn.apache.org/viewvc?view=rev&rev=481763
Log:
linelength and 1.5 bootstrap whining

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AntStructure.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=481763&r1=481762&r2=481763
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/IntrospectionHelper.java Sun Dec  3 04:16:56
2006
@@ -1008,7 +1008,8 @@
                     }
                 }
             };
-        } else if (reflectedArg.getSuperclass() != null && reflectedArg.getSuperclass().getName().equals("java.lang.Enum"))
{
+        } else if (reflectedArg.getSuperclass() != null
+                   && reflectedArg.getSuperclass().getName().equals("java.lang.Enum"))
{
             return new AttributeSetter(m) {
                 public void set(Project p, Object parent, String value)
                         throws InvocationTargetException, IllegalAccessException, BuildException
{
@@ -1018,7 +1019,9 @@
                                     invoke(null, new Object[] {value})});
                     } catch (InvocationTargetException x) {
                         if (x.getTargetException() instanceof IllegalArgumentException) {
-                            throw new BuildException("'" + value + "' is not a permitted
value for " + reflectedArg.getName());
+                            throw new BuildException(
+                                "'" + value + "' is not a permitted value for "
+                                + reflectedArg.getName());
                         } else {
                             throw new BuildException(x.getTargetException());
                         }

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AntStructure.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AntStructure.java?view=diff&rev=481763&r1=481762&r2=481763
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AntStructure.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AntStructure.java Sun Dec  3 04:16:56
2006
@@ -370,9 +370,11 @@
                     } catch (IllegalAccessException ie) {
                         sb.append("CDATA ");
                     }
-                } else if (type.getSuperclass() != null && type.getSuperclass().getName().equals("java.lang.Enum"))
{
+                } else if (type.getSuperclass() != null
+                           && type.getSuperclass().getName().equals("java.lang.Enum"))
{
                     try {
-                        Object[] values = (Object[]) type.getMethod("values", null).invoke(null,
null);
+                        Object[] values = (Object[]) type.getMethod("values", (Class[]) 
null)
+                            .invoke(null, (Object[]) null);
                         if (values.length == 0) {
                             sb.append("CDATA ");
                         } else {
@@ -381,7 +383,8 @@
                                 if (i != 0) {
                                     sb.append(" | ");
                                 }
-                                sb.append(type.getMethod("name", null).invoke(values[i],
null));
+                                sb.append(type.getMethod("name", (Class[]) null)
+                                          .invoke(values[i], (Object[]) null));
                             }
                             sb.append(") ");
                         }



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


Mime
View raw message