MCPcopy
hub / github.com/google/gson / delegate

Method delegate

gson/src/main/java/com/google/gson/Gson.java:1226–1237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1224 }
1225
1226 private TypeAdapter<T> delegate() {
1227 TypeAdapter<T> delegate = this.delegate;
1228 if (delegate == null) {
1229 // Can occur when adapter is leaked to other thread or when adapter is used for
1230 // (de-)serialization
1231 // directly within the TypeAdapterFactory which requested it
1232 throw new IllegalStateException(
1233 "Adapter for type with cyclic dependency has been used"
1234 + " before dependency has been resolved");
1235 }
1236 return delegate;
1237 }
1238
1239 @Override
1240 public TypeAdapter<T> getSerializationDelegate() {

Callers 3

readMethod · 0.95
writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected