commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1196996 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlContext.java
Date Thu, 03 Nov 2011 08:49:08 GMT
Author: mcucchiara
Date: Thu Nov  3 08:49:08 2011
New Revision: 1196996

URL: http://svn.apache.org/viewvc?rev=1196996&view=rev
Log:
OGNL-37 - Use Map.entrySet instead of Map.keySet for better performance.

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

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlContext.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlContext.java?rev=1196996&r1=1196995&r2=1196996&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlContext.java (original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlContext.java Thu Nov
 3 08:49:08 2011
@@ -704,9 +704,9 @@ public class OgnlContext
 
     public void putAll( Map<? extends String, ?> t )
     {
-        for ( String k : t.keySet() )
+        for ( Entry<? extends String, ?> entry : t.entrySet() )
         {
-            put( k, t.get( k ) );
+            put( entry.getKey(), entry.getValue() );
         }
     }
 



Mime
View raw message