commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1187612 - /commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
Date Sat, 22 Oct 2011 01:01:17 GMT
Author: mcucchiara
Date: Sat Oct 22 01:01:17 2011
New Revision: 1187612

URL: http://svn.apache.org/viewvc?rev=1187612&view=rev
Log:
Primitive default doesn't need ClassCache implementation

Modified:
    commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java

Modified: commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java?rev=1187612&r1=1187611&r2=1187612&view=diff
==============================================================================
--- commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
(original)
+++ commons/proper/ognl/branches/new-cache-approach/src/main/java/org/apache/commons/ognl/OgnlRuntime.java
Sat Oct 22 01:01:17 2011
@@ -191,7 +191,7 @@ public class OgnlRuntime
 
     static final Map<String, Class<?>> _primitiveTypes = new HashMap<String,
Class<?>>( 101 );
 
-    static final ClassCache<Object> _primitiveDefaults = cacheFactory.createClassCache(
);
+    static final HashMap<Class<?>, Object> _primitiveDefaults = new HashMap<Class<?>,
Object>( 20 );
 
     static final Cache<Method, Class<?>[]> _methodParameterTypesCache =
         cacheFactory.createCache( new CacheEntryFactory<Method, Class<?>[]>(
)
@@ -228,8 +228,7 @@ public class OgnlRuntime
     private static final MethodPermCacheEntryFactory methodPermCacheEntryFactory =
         new MethodPermCacheEntryFactory( _securityManager );
 
-    static final Cache<Method, Boolean> _methodPermCache =
-        cacheFactory.createCache( methodPermCacheEntryFactory );
+    static final Cache<Method, Boolean> _methodPermCache = cacheFactory.createCache(
methodPermCacheEntryFactory );
 
     static ClassCacheInspector _cacheInspector;
 



Mime
View raw message