commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1125968 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java
Date Sun, 22 May 2011 13:58:07 GMT
Author: simonetripodi
Date: Sun May 22 13:58:06 2011
New Revision: 1125968

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

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

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java?rev=1125968&r1=1125967&r2=1125968&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java Sun May 22 13:58:06
2011
@@ -183,7 +183,7 @@ public abstract class OgnlOps
         {
             return false;
         }
-        Class c = value.getClass();
+        Class<?> c = value.getClass();
 
         if ( c == Boolean.class )
             return (Boolean) value;
@@ -217,7 +217,7 @@ public abstract class OgnlOps
         {
             return 0L;
         }
-        Class c = value.getClass();
+        Class<?> c = value.getClass();
         if ( c.getSuperclass() == Number.class )
         {
             return ( (Number) value ).longValue();
@@ -247,7 +247,7 @@ public abstract class OgnlOps
         {
             return 0.0;
         }
-        Class c = value.getClass();
+        Class<?> c = value.getClass();
         if ( c.getSuperclass() == Number.class )
         {
             return ( (Number) value ).doubleValue();
@@ -279,7 +279,7 @@ public abstract class OgnlOps
         {
             return BigInteger.valueOf( 0L );
         }
-        Class c = value.getClass();
+        Class<?> c = value.getClass();
         if ( c == BigInteger.class )
         {
             return (BigInteger) value;
@@ -317,7 +317,7 @@ public abstract class OgnlOps
         {
             return BigDecimal.valueOf( 0L );
         }
-        Class c = value.getClass();
+        Class<?> c = value.getClass();
         if ( c == BigDecimal.class )
         {
             return (BigDecimal) value;
@@ -385,7 +385,7 @@ public abstract class OgnlOps
     {
         if ( value != null )
         {
-            Class c = value.getClass();
+            Class<?> c = value.getClass();
             if ( c == Integer.class )
             {
                 return INT;



Mime
View raw message