Queue that discards all elements.
()
| 1102 | */ |
| 1103 | |
| 1104 | @SuppressWarnings("unchecked") // impl never uses a parameter or returns any non-null value |
| 1105 | static <E> Queue<E> discardingQueue() { |
| 1106 | return (Queue) DISCARDING_QUEUE; |
| 1107 | } |
| 1108 | |
| 1109 | /* |
| 1110 | * 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