commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r885506 - /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlContext.java
Date Mon, 30 Nov 2009 17:16:37 GMT
Author: sebb
Date: Mon Nov 30 17:16:36 2009
New Revision: 885506

URL: http://svn.apache.org/viewvc?rev=885506&view=rev
Log:
Document why casts are safe

Modified:
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlContext.java

Modified: commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlContext.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlContext.java?rev=885506&r1=885505&r2=885506&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlContext.java (original)
+++ commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlContext.java Mon
Nov 30 17:16:36 2009
@@ -75,7 +75,7 @@
          * Creates an instance using a provided map as the underlying variable storage.
          * @param vars the variables map
          */
-        @SuppressWarnings("unchecked")
+        @SuppressWarnings("unchecked") // OK to cast Map<?,?> to Map<Object,Object>
         public Mapped(Map<?, ?> vars) {
             map = (Map<Object,Object>) (vars == null? new HashMap<String,Object>()
: vars);
         }



Mime
View raw message