MCPcopy Create free account
hub / github.com/antlr/codebuff / defensiveCopy

Method defensiveCopy

corpus/java/training/guava/base/Predicates.java:714–716  ·  view source on GitHub ↗
(T... array)

Source from the content-addressed store, hash-verified

712 }
713
714 private static <T> List<T> defensiveCopy(T... array) {
715 return defensiveCopy(Arrays.asList(array));
716 }
717
718 static <T> List<T> defensiveCopy(Iterable<T> iterable) {
719 ArrayList<T> list = new ArrayList<T>();

Callers 2

andMethod · 0.95
orMethod · 0.95

Calls 3

addMethod · 0.65
asListMethod · 0.45
checkNotNullMethod · 0.45

Tested by

no test coverage detected