MCPcopy Create free account
hub / github.com/davidgiven/luje / attachToParentNoFixup

Method attachToParentNoFixup

lib/java/util/TreeMap.java:2136–2147  ·  view source on GitHub ↗
(Node<K, V> toDelete, Node<K, V> toConnect)

Source from the content-addressed store, hash-verified

2134 }
2135
2136 private void attachToParentNoFixup(Node<K, V> toDelete, Node<K, V> toConnect) {
2137 // assert toConnect!=null
2138 Node<K,V> parent = toDelete.parent;
2139 toConnect.parent = parent;
2140 if (parent == null) {
2141 root = toConnect;
2142 } else if (toDelete == parent.left) {
2143 parent.left = toConnect;
2144 } else {
2145 parent.right = toConnect;
2146 }
2147 }
2148
2149 private void attachToParent(Node<K, V> toDelete, Node<K, V> toConnect) {
2150 // assert toConnect!=null

Callers 2

deleteNodeMethod · 0.95
attachToParentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected