commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcucchi...@apache.org
Subject svn commit: r1188751 - /commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java
Date Tue, 25 Oct 2011 16:01:59 GMT
Author: mcucchiara
Date: Tue Oct 25 16:01:59 2011
New Revision: 1188751

URL: http://svn.apache.org/viewvc?rev=1188751&view=rev
Log:
replaced for with for each

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

Modified: commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java
URL: http://svn.apache.org/viewvc/commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java?rev=1188751&r1=1188750&r2=1188751&view=diff
==============================================================================
--- commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java (original)
+++ commons/proper/ognl/trunk/src/main/java/org/apache/commons/ognl/IntHashMap.java Tue Oct
25 16:01:59 2011
@@ -381,10 +381,8 @@ public class IntHashMap<K extends Number
      */
     public void putAll( Map<? extends K, ? extends V> otherMap )
     {
-        for ( Iterator<? extends K> it = otherMap.keySet().iterator(); it.hasNext();
)
+        for ( K k : otherMap.keySet( ) )
         {
-            K k = it.next();
-
             put( k, otherMap.get( k ) );
         }
     }



Mime
View raw message