118 |
|
* should be used only to detect bugs.</i> |
119 |
|
* |
120 |
|
* <p>This class is a member of the |
121 |
< |
* <a href="{@docRoot}/java/util/package-summary.html#CollectionsFramework"> |
121 |
> |
* <a href="{@docRoot}/java.base/java/util/package-summary.html#CollectionsFramework"> |
122 |
|
* Java Collections Framework</a>. |
123 |
|
* |
124 |
|
* @param <K> the type of keys maintained by this map |
2145 |
|
if (replacement != p) { |
2146 |
|
TreeNode<K,V> pp = replacement.parent = p.parent; |
2147 |
|
if (pp == null) |
2148 |
< |
root = replacement; |
2148 |
> |
(root = replacement).red = false; |
2149 |
|
else if (p == pp.left) |
2150 |
|
pp.left = replacement; |
2151 |
|
else |