commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1125917 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java
Date Sun, 22 May 2011 11:36:31 GMT
Author: simonetripodi
Date: Sun May 22 11:36:31 2011
New Revision: 1125917

URL: http://svn.apache.org/viewvc?rev=1125917&view=rev
Log:
fixed Class raw type

Modified:
    incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java?rev=1125917&r1=1125916&r2=1125917&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java
(original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ArrayPropertyAccessor.java
Sun May 22 11:36:31 2011
@@ -207,14 +207,14 @@ public class ArrayPropertyAccessor
             indexStr = "org.apache.commons.ognl.OgnlOps#getIntValue(" + indexStr + toString
+ ")";
         }
 
-        Class type = target.getClass().isArray() ? target.getClass().getComponentType() :
target.getClass();
+        Class<? extends Object> type = target.getClass().isArray() ? target.getClass().getComponentType()
: target.getClass();
 
         context.setCurrentAccessor( target.getClass() );
         context.setCurrentType( target.getClass().getComponentType() );
 
         if ( type.isPrimitive() )
         {
-            Class wrapClass = OgnlRuntime.getPrimitiveWrapperClass( type );
+            Class<?> wrapClass = OgnlRuntime.getPrimitiveWrapperClass( type );
 
             return "[" + indexStr + "]=((" + wrapClass.getName() + ")org.apache.commons.ognl.OgnlOps.convertValue($3,"
                 + wrapClass.getName() + ".class, true))." + OgnlRuntime.getNumericValueGetter(
wrapClass );



Mime
View raw message