commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1142208 - /commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java
Date Sat, 02 Jul 2011 11:58:01 GMT
Author: simonetripodi
Date: Sat Jul  2 11:58:00 2011
New Revision: 1142208

URL: http://svn.apache.org/viewvc?rev=1142208&view=rev
Log:
arrays initialization less verbose

Modified:
    commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java

Modified: commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java?rev=1142208&r1=1142207&r2=1142208&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java
(original)
+++ commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java
Sat Jul  2 11:58:00 2011
@@ -439,12 +439,10 @@ public class CallMethodRule
                 return;
             }
 
-            parameters = new Object[1];
-            parameters[0] = bodyText;
+            parameters = new Object[] { bodyText };
             if ( paramTypes.length == 0 )
             {
-                paramTypes = new Class[1];
-                paramTypes[0] = String.class;
+                paramTypes = new Class[] { String.class };
             }
         }
         else



Mime
View raw message