Queue that discards all elements.
()
| 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! |
no outgoing calls
no test coverage detected