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

Method newCopyOnWriteArrayList

corpus/java/training/guava/collect/Lists.java:274–277  ·  view source on GitHub ↗

Creates an empty CopyOnWriteArrayList instance. Note: if you need an immutable empty List, use Collections#emptyList instead. @return a new, empty CopyOnWriteArrayList @since 12.0

()

Source from the content-addressed store, hash-verified

272 * @since 12.0
273 */
274 @GwtIncompatible // CopyOnWriteArrayList
275 public static <E> CopyOnWriteArrayList<E> newCopyOnWriteArrayList() {
276 return new CopyOnWriteArrayList<E>();
277 }
278
279 /**
280 * Creates a {@code CopyOnWriteArrayList} instance containing the given elements.

Callers

nothing calls this directly

Calls 2

castMethod · 0.95
newArrayListMethod · 0.95

Tested by

no test coverage detected