()
| 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() { |
no outgoing calls
no test coverage detected