(ObjectInputStream stream)
| 122 | } |
| 123 | |
| 124 | @SuppressWarnings("unchecked") // reading field populated by writeObject |
| 125 | @GwtIncompatible // java.io.ObjectInputStream |
| 126 | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { |
| 127 | stream.defaultReadObject(); |
| 128 | keyType = (Class<K>) stream.readObject(); |
| 129 | setDelegates( |
| 130 | WellBehavedMap.wrap(new EnumMap<K, V>(keyType)), |
| 131 | new HashMap<V, K>(keyType.getEnumConstants().length * 3 / 2)); |
| 132 | Serialization.populateMap(this, stream); |
| 133 | } |
| 134 | |
| 135 | @GwtIncompatible // only needed in emulated source. |
| 136 | private static final long serialVersionUID = 0; |
nothing calls this directly
no test coverage detected