Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ReadyTalk/avian
/ shrink
Method
shrink
classpath/java/util/ArrayList.java:43–47 ·
view source on GitHub ↗
(int newSize)
Source
from the content-addressed store, hash-verified
41
}
42
43
private
void
shrink(
int
newSize) {
44
if
(array.length / 2 >= MinimumCapacity && newSize <= array.length / 3) {
45
resize(array.length / 2);
46
}
47
}
48
49
private
void
resize(
int
capacity) {
50
Object[] newArray = null;
Callers
1
remove
Method · 0.95
Calls
1
resize
Method · 0.95
Tested by
no test coverage detected