ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java (file contents):
Revision 1.198 by dl, Thu Mar 21 23:49:01 2013 UTC vs.
Revision 1.199 by dl, Wed Mar 27 19:46:34 2013 UTC

# Line 3097 | Line 3097 | public class ConcurrentHashMap<K,V>
3097  
3098          public Iterator<K> iterator() { return this; }
3099  
3100 <        public void forEach(Consumer<? super K> action) {
3100 >        public void forEachRemaining(Consumer<? super K> action) {
3101              forEachKey(action);
3102          }
3103  
# Line 3141 | Line 3141 | public class ConcurrentHashMap<K,V>
3141  
3142          public Iterator<V> iterator() { return this; }
3143  
3144 <        public void forEach(Consumer<? super V> action) {
3144 >        public void forEachRemaining(Consumer<? super V> action) {
3145              forEachValue(action);
3146          }
3147  
# Line 3182 | Line 3182 | public class ConcurrentHashMap<K,V>
3182  
3183          public Iterator<Map.Entry<K,V>> iterator() { return this; }
3184  
3185 <        public void forEach(Consumer<? super Map.Entry<K,V>> action) {
3185 >        public void forEachRemaining(Consumer<? super Map.Entry<K,V>> action) {
3186              if (action == null) throw new NullPointerException();
3187              V v;
3188              while ((v = advanceValue()) != null)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines