src/java.base/share/classes/java/util/concurrent/ConcurrentHashMap.java

Print this page
rev 16851 : 8176402: parameter name switcharoo in ConcurrentHashMap
Reviewed-by: martin, chegar

@@ -3466,13 +3466,13 @@
         }
     }
 
     static final class KeyIterator<K,V> extends BaseIterator<K,V>
         implements Iterator<K>, Enumeration<K> {
-        KeyIterator(Node<K,V>[] tab, int index, int size, int limit,
+        KeyIterator(Node<K,V>[] tab, int size, int index, int limit,
                     ConcurrentHashMap<K,V> map) {
-            super(tab, index, size, limit, map);
+            super(tab, size, index, limit, map);
         }
 
         public final K next() {
             Node<K,V> p;
             if ((p = next) == null)

@@ -3486,13 +3486,13 @@
         public final K nextElement() { return next(); }
     }
 
     static final class ValueIterator<K,V> extends BaseIterator<K,V>
         implements Iterator<V>, Enumeration<V> {
-        ValueIterator(Node<K,V>[] tab, int index, int size, int limit,
+        ValueIterator(Node<K,V>[] tab, int size, int index, int limit,
                       ConcurrentHashMap<K,V> map) {
-            super(tab, index, size, limit, map);
+            super(tab, size, index, limit, map);
         }
 
         public final V next() {
             Node<K,V> p;
             if ((p = next) == null)

@@ -3506,13 +3506,13 @@
         public final V nextElement() { return next(); }
     }
 
     static final class EntryIterator<K,V> extends BaseIterator<K,V>
         implements Iterator<Map.Entry<K,V>> {
-        EntryIterator(Node<K,V>[] tab, int index, int size, int limit,
+        EntryIterator(Node<K,V>[] tab, int size, int index, int limit,
                       ConcurrentHashMap<K,V> map) {
-            super(tab, index, size, limit, map);
+            super(tab, size, index, limit, map);
         }
 
         public final Map.Entry<K,V> next() {
             Node<K,V> p;
             if ((p = next) == null)