1121 |
|
if (lastReturned.left != null && lastReturned.right != null) |
1122 |
|
next = lastReturned; |
1123 |
|
deleteEntry(lastReturned); |
1124 |
< |
expectedModCount++; |
1124 |
> |
expectedModCount = modCount; |
1125 |
|
lastReturned = null; |
1126 |
|
} |
1127 |
|
} |
1689 |
|
} |
1690 |
|
|
1691 |
|
public NavigableMap<K,V> headMap(K toKey, boolean inclusive) { |
1692 |
< |
if (!inClosedRange(toKey)) |
1692 |
> |
if (!inRange(toKey, inclusive)) |
1693 |
|
throw new IllegalArgumentException("toKey out of range"); |
1694 |
|
return new AscendingSubMap(m, |
1695 |
|
fromStart, lo, loInclusive, |
2353 |
|
|
2354 |
|
if (hi < lo) return null; |
2355 |
|
|
2356 |
< |
int mid = (lo + hi) / 2; |
2356 |
> |
int mid = (lo + hi) >>> 1; |
2357 |
|
|
2358 |
|
Entry<K,V> left = null; |
2359 |
|
if (lo < mid) |