| 90 | } |
| 91 | |
| 92 | @SuppressWarnings("unchecked") |
| 93 | private static final class EmptySet extends AbstractSet implements |
| 94 | Serializable { |
| 95 | private static final long serialVersionUID = 1582296315990362920L; |
| 96 | |
| 97 | @Override |
| 98 | public boolean contains(Object object) { |
| 99 | return false; |
| 100 | } |
| 101 | |
| 102 | @Override |
| 103 | public int size() { |
| 104 | return 0; |
| 105 | } |
| 106 | |
| 107 | @Override |
| 108 | public Iterator iterator() { |
| 109 | return new Iterator() { |
| 110 | public boolean hasNext() { |
| 111 | return false; |
| 112 | } |
| 113 | |
| 114 | public Object next() { |
| 115 | throw new NoSuchElementException(); |
| 116 | } |
| 117 | |
| 118 | public void remove() { |
| 119 | throw new UnsupportedOperationException(); |
| 120 | } |
| 121 | }; |
| 122 | } |
| 123 | |
| 124 | private Object readResolve() { |
| 125 | return Collections.EMPTY_SET; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | @SuppressWarnings("unchecked") |
| 130 | private static final class EmptyMap extends AbstractMap implements |
nothing calls this directly
no outgoing calls
no test coverage detected