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,3478 **** } } 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, ConcurrentHashMap<K,V> map) { ! super(tab, index, size, limit, map); } public final K next() { Node<K,V> p; if ((p = next) == null) --- 3466,3478 ---- } } static final class KeyIterator<K,V> extends BaseIterator<K,V> implements Iterator<K>, Enumeration<K> { ! KeyIterator(Node<K,V>[] tab, int size, int index, int limit, ConcurrentHashMap<K,V> map) { ! super(tab, size, index, limit, map); } public final K next() { Node<K,V> p; if ((p = next) == null)
*** 3486,3498 **** 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, ConcurrentHashMap<K,V> map) { ! super(tab, index, size, limit, map); } public final V next() { Node<K,V> p; if ((p = next) == null) --- 3486,3498 ---- 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 size, int index, int limit, ConcurrentHashMap<K,V> map) { ! super(tab, size, index, limit, map); } public final V next() { Node<K,V> p; if ((p = next) == null)
*** 3506,3518 **** 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, ConcurrentHashMap<K,V> map) { ! super(tab, index, size, limit, map); } public final Map.Entry<K,V> next() { Node<K,V> p; if ((p = next) == null) --- 3506,3518 ---- 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 size, int index, int limit, ConcurrentHashMap<K,V> map) { ! super(tab, size, index, limit, map); } public final Map.Entry<K,V> next() { Node<K,V> p; if ((p = next) == null)