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

Method readObject

output/java_guava/1.4.18/EnumHashBiMap.java:124–133  ·  view source on GitHub ↗
(ObjectInputStream stream)

Source from the content-addressed store, hash-verified

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(
130WellBehavedMap.wrap(new EnumMap<K, V>(keyType)),
131new 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;

Callers

nothing calls this directly

Calls 4

wrapMethod · 0.95
populateMapMethod · 0.95
setDelegatesMethod · 0.45
getEnumConstantsMethod · 0.45

Tested by

no test coverage detected