MCPcopy Create free account
hub / github.com/ReadyTalk/avian / shrink

Method shrink

classpath/java/util/HashMap.java:62–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 private void shrink() {
63 if (array.length / 2 >= MinimumCapacity && size <= array.length / 3) {
64 resize(array.length / 2);
65 }
66 }
67
68 private void resize(int capacity) {
69 Cell<K, V>[] newArray = null;

Callers 2

removeMethod · 0.95
removeCellMethod · 0.95

Calls 1

resizeMethod · 0.95

Tested by

no test coverage detected