commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1126031 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultClassResolver.java
Date Sun, 22 May 2011 16:17:53 GMT
Author: simonetripodi
Date: Sun May 22 16:17:53 2011
New Revision: 1126031

URL: http://svn.apache.org/viewvc?rev=1126031&view=rev
Log:
typed internal Map<String, Class<?>> cache

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

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultClassResolver.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultClassResolver.java?rev=1126031&r1=1126030&r2=1126031&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultClassResolver.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/DefaultClassResolver.java Sun
May 22 16:17:53 2011
@@ -33,7 +33,7 @@ public class DefaultClassResolver
     extends Object
     implements ClassResolver
 {
-    private Map classes = new HashMap( 101 );
+    private Map<String, Class<?>> classes = new HashMap<String, Class<?>>(
101 );
 
     public DefaultClassResolver()
     {
@@ -48,7 +48,7 @@ public class DefaultClassResolver
     {
         Class<?> result = null;
 
-        if ( ( result = (Class<?>) classes.get( className ) ) == null )
+        if ( ( result = classes.get( className ) ) == null )
         {
             try
             {



Mime
View raw message