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/02 15:21:48 UTC

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

Author: sebb
Date: Sun Aug  2 13:21:48 2009
New Revision: 800066

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

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=800066&r1=800065&r2=800066&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 Sun Aug  2 13:21:48 2009
@@ -107,13 +107,13 @@
      */
     protected boolean silent = false;
     /**
-     * Wheter error messages will carry debugging information.
+     * Whether error messages will carry debugging information.
      */
     protected boolean debug = true;
     /**
      *  The map of 'prefix:function' to object implementing the function.
      */
-    protected Map<String, Object> functions = Collections.EMPTY_MAP;
+    protected Map<String, Object> functions = Collections.emptyMap();
     /**
      * The expression cache.
      */
@@ -123,12 +123,12 @@
      */
     protected static final JexlContext EMPTY_CONTEXT = new JexlContext() {
         /** {@inheritDoc} */
-        public void setVars(Map vars) {
+        public void setVars(Map<String, Object> vars) {
             throw new UnsupportedOperationException("Immutable JexlContext");
         }
         /** {@inheritDoc} */
-        public Map getVars() {
-            return java.util.Collections.EMPTY_MAP;
+        public Map<String, Object> getVars() {
+            return Collections.emptyMap();
         }
     };
     /**