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

Method writeReplace

output/java_guava/1.4.19/TypeToken.java:871–875  ·  view source on GitHub ↗

Implemented to support serialization of subclasses.

()

Source from the content-addressed store, hash-verified

869
870
871 protected Object writeReplace() {
872 // TypeResolver just transforms the type to our own impls that are Serializable
873 // except TypeVariable.
874 return of(new TypeResolver().resolveType(runtimeType));
875 }
876
877 /**
878 * 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