MCPcopy Create free account
hub / github.com/LFYSec/MScan / remove

Method remove

src/main/java/pascal/taie/util/collection/IndexMap.java:133–145  ·  view source on GitHub ↗
(Object key)

Source from the content-addressed store, hash-verified

131 }
132
133 @Override
134 public V remove(Object key) {
135 int index = indexer.getIndex((K) key);
136 if (isValidIndex(index)) {
137 V oldV = values[index];
138 if (oldV != null) {
139 values[index] = null;
140 --size;
141 return oldV;
142 }
143 }
144 return null;
145 }
146
147 @Override
148 public void clear() {

Callers

nothing calls this directly

Calls 3

isValidIndexMethod · 0.95
getIndexMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected