commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1103001 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlContext.java
Date Sat, 14 May 2011 10:12:58 GMT
Author: simonetripodi
Date: Sat May 14 10:12:58 2011
New Revision: 1103001

URL: http://svn.apache.org/viewvc?rev=1103001&view=rev
Log:
typed the _localReferenceMap

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

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlContext.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlContext.java?rev=1103001&r1=1103000&r2=1103001&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlContext.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlContext.java Sat May 14
10:12:58 2011
@@ -96,7 +96,7 @@ public class OgnlContext extends Object 
     private Stack<Class<?>> _accessorStack = new Stack<Class<?>>();
 
     private int _localReferenceCounter = 0;
-    private Map _localReferenceMap = null;
+    private Map<String, LocalReference> _localReferenceMap = null;
 
     /**
      * Constructs a new OgnlContext with the default class resolver, type converter and member
@@ -458,13 +458,13 @@ public class OgnlContext extends Object 
     {
         if (_localReferenceMap == null)
         {
-            _localReferenceMap = new LinkedHashMap();
+            _localReferenceMap = new LinkedHashMap<String, LocalReference>();
         }
 
         _localReferenceMap.put(key, reference);
     }
 
-    public Map getLocalReferences()
+    public Map<String, LocalReference> getLocalReferences()
     {
         return _localReferenceMap;
     }



Mime
View raw message