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.101 by jsr166, Thu Apr 14 01:17:58 2011 UTC vs.
Revision 1.102 by dl, Thu Apr 14 20:24:45 2011 UTC

# Line 1224 | Line 1224 | public class ConcurrentHashMap<K, V> ext
1224          }
1225  
1226          final HashEntry<K,V> nextEntry() {
1227 <            HashEntry<K,V> e = lastReturned = nextEntry;
1227 >            HashEntry<K,V> e = nextEntry;
1228              if (e == null)
1229                  throw new NoSuchElementException();
1230 +            lastReturned = e; // cannot assign until after null check
1231              if ((nextEntry = e.next) == null)
1232                  advance();
1233              return e;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines