commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r800066 - /commons/proper/jexl/branches/2.0/src/main/java/org/apache/commons/jexl/JexlEngine.java
Date Sun, 02 Aug 2009 13:21:48 GMT
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();
         }
     };
     /**



Mime
View raw message