Implemented to support serialization of subclasses.
()
| 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 |
nothing calls this directly
no test coverage detected