mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fixed a bug in AbstractChronicleMap.EntryIterator -- shouldn't update iterator's state on next(), if there no more entries
This commit is contained in:
@@ -318,9 +318,10 @@ abstract class AbstractChronicleMap<K, V> extends AbstractMap<K, V>
|
||||
public Entry<K, V> next() {
|
||||
checkSingleThreaded();
|
||||
fillEntryBuffer();
|
||||
if ((returned = entryBuffer.poll()) == null)
|
||||
Entry<K, V> e;
|
||||
if ((e = entryBuffer.poll()) == null)
|
||||
throw new NoSuchElementException();
|
||||
return returned;
|
||||
return returned = e;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user