You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/05/22 13:05:19 UTC

svn commit: r1125910 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/Ognl.java

Author: simonetripodi
Date: Sun May 22 11:05:19 2011
New Revision: 1125910

URL: http://svn.apache.org/viewvc?rev=1125910&view=rev
Log:
suppressed warnings caused by unchecked casts

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

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/Ognl.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/Ognl.java?rev=1125910&r1=1125909&r2=1125910&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/Ognl.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/Ognl.java Sun May 22 11:05:19 2011
@@ -421,6 +421,7 @@ public abstract class Ognl
      * @throws InappropriateExpressionException if the expression can't be used in this context
      * @throws OgnlException if there is a pathological environmental problem
      */
+    @SuppressWarnings( "unchecked" ) // will cause CCE if types are not compatible
     public static <T> T getValue( Object tree, Map<String, Object> context, Object root, Class<T> resultType )
         throws OgnlException
     {
@@ -453,6 +454,7 @@ public abstract class Ognl
      * @param root The object to retrieve the expression value from.
      * @return The value.
      */
+    @SuppressWarnings( "unchecked" ) // will cause CCE if types are not compatible
     public static <T> T getValue( ExpressionAccessor expression, OgnlContext context, Object root )
     {
         return (T) expression.get( context, root );