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

Comparing jsr166/src/jdk8/java/util/HashMap.java (file contents):
Revision 1.2 by jsr166, Tue Sep 26 16:52:48 2017 UTC vs.
Revision 1.3 by jsr166, Tue Sep 26 16:58:06 2017 UTC

# Line 2038 | Line 2038 | public class HashMap<K,V> extends Abstra
2038                  return;
2039              if (root.parent != null)
2040                  root = root.root();
2041 <            if (root == null || root.right == null ||
2042 <                (rl = root.left) == null || rl.left == null) {
2041 >            if (root == null
2042 >                || (movable
2043 >                    && (root.right == null
2044 >                        || (rl = root.left) == null
2045 >                        || rl.left == null))) {
2046                  tab[index] = first.untreeify(map);  // too small
2047                  return;
2048              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines