commons-commits mailing list archives

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

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

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

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ObjectPropertyAccessor.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ObjectPropertyAccessor.java?rev=1125915&r1=1125914&r2=1125915&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ObjectPropertyAccessor.java
(original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/ObjectPropertyAccessor.java
Sun May 22 11:32:20 2011
@@ -178,7 +178,7 @@ public class ObjectPropertyAccessor
         }
     }
 
-    public Class getPropertyClass( OgnlContext context, Object target, Object index )
+    public Class<?> getPropertyClass( OgnlContext context, Object target, Object index
)
     {
         try
         {
@@ -292,7 +292,7 @@ public class ObjectPropertyAccessor
                 throw new UnsupportedCompilationException( "Unable to determine setting expression
on "
                     + context.getCurrentObject() + " with index of " + index );
 
-            Class parm = m.getParameterTypes()[0];
+            Class<?> parm = m.getParameterTypes()[0];
             String conversion;
 
             if ( m.getParameterTypes().length > 1 )
@@ -301,7 +301,7 @@ public class ObjectPropertyAccessor
 
             if ( parm.isPrimitive() )
             {
-                Class wrapClass = OgnlRuntime.getPrimitiveWrapperClass( parm );
+                Class<?> wrapClass = OgnlRuntime.getPrimitiveWrapperClass( parm );
                 conversion =
                     OgnlRuntime.getCompiler().createLocalReference( context,
                                                                     "(("



Mime
View raw message