commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1142278 - /commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java
Date Sat, 02 Jul 2011 19:27:39 GMT
Author: simonetripodi
Date: Sat Jul  2 19:27:39 2011
New Revision: 1142278

URL: http://svn.apache.org/viewvc?rev=1142278&view=rev
Log:
filled array values in a smartest way

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=1142278&r1=1142277&r2=1142278&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 19:27:39 2011
@@ -352,10 +352,7 @@ public class CallMethodRule
         if ( paramCount > 0 )
         {
             Object parameters[] = new Object[paramCount];
-            for ( int i = 0; i < parameters.length; i++ )
-            {
-                parameters[i] = null;
-            }
+            fill( parameters, null );
             getDigester().pushParams( parameters );
         }
     }



Mime
View raw message