commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1142282&view=rev
Log:
added generics on class array

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=1142282&r1=1142281&r2=1142282&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:48:06 2011
@@ -238,12 +238,12 @@ public class CallMethodRule
         this.paramCount = paramCount;
         if ( paramTypes == null )
         {
-            this.paramTypes = new Class[paramCount];
+            this.paramTypes = new Class<?>[paramCount];
             fill( this.paramTypes, String.class );
         }
         else
         {
-            this.paramTypes = new Class[paramTypes.length];
+            this.paramTypes = new Class<?>[paramTypes.length];
             arraycopy( paramTypes, 0, this.paramTypes, 0, paramTypes.length );
         }
     }
@@ -322,7 +322,7 @@ public class CallMethodRule
         // if necessary, load parameter classes
         if ( this.paramClassNames != null )
         {
-            this.paramTypes = new Class[paramClassNames.length];
+            this.paramTypes = new Class<?>[paramClassNames.length];
             for ( int i = 0; i < this.paramClassNames.length; i++ )
             {
                 try



Mime
View raw message