You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/08/03 17:29:34 UTC

svn commit: r800425 - /commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlEngine.java

Author: sebb
Date: Mon Aug  3 15:29:33 2009
New Revision: 800425

URL: http://svn.apache.org/viewvc?rev=800425&view=rev
Log:
Type-safety fix

Modified:
    commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlEngine.java

Modified: commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlEngine.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlEngine.java?rev=800425&r1=800424&r2=800425&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlEngine.java (original)
+++ commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlEngine.java Mon Aug  3 15:29:33 2009
@@ -256,7 +256,7 @@
      * is passed, the empty collection is used.
      */
     public void setFunctions(Map<String, Object> funcs) {
-        functions = funcs != null ? funcs : Collections.EMPTY_MAP;
+        functions = funcs != null ? funcs : Collections.<String, Object>emptyMap();
     }
 
     /**