Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antlr/codebuff
/ defensiveCopy
Method
defensiveCopy
output/java_guava/1.4.18/Predicates.java:751–753 ·
view source on GitHub ↗
(T... array)
Source
from the content-addressed store, hash-verified
749
}
750
751
private
static
<T> List<T> defensiveCopy(T... array) {
752
return
defensiveCopy(Arrays.asList(array));
753
}
754
755
756
static
<T> List<T> defensiveCopy(Iterable<T> iterable) {
Callers
2
and
Method · 0.95
or
Method · 0.95
Calls
3
add
Method · 0.65
asList
Method · 0.45
checkNotNull
Method · 0.45
Tested by
no test coverage detected