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

Method discardingQueue

corpus/java/training/guava/cache/LocalCache.java:1061–1064  ·  view source on GitHub ↗

Queue that discards all elements.

()

Source from the content-addressed store, hash-verified

1059 * Queue that discards all elements.
1060 */
1061 @SuppressWarnings("unchecked") // impl never uses a parameter or returns any non-null value
1062 static <E> Queue<E> discardingQueue() {
1063 return (Queue) DISCARDING_QUEUE;
1064 }
1065
1066 /*
1067 * Note: All of this duplicate code sucks, but it saves a lot of memory. If only Java had mixins!

Callers 2

LocalCacheMethod · 0.95
SegmentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected