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

Method writeReplace

output/java_guava/1.4.18/TypeToken.java:870–874  ·  view source on GitHub ↗

Implemented to support serialization of subclasses.

()

Source from the content-addressed store, hash-verified

868
869
870 protected Object writeReplace() {
871 // TypeResolver just transforms the type to our own impls that are Serializable
872 // except TypeVariable.
873 return of(new TypeResolver().resolveType(runtimeType));
874 }
875
876 /**
877 * Ensures that this type token doesn't contain type variables, which can cause unchecked type

Callers

nothing calls this directly

Calls 2

ofMethod · 0.95
resolveTypeMethod · 0.45

Tested by

no test coverage detected