Hide RuntimeJsonAdapterFactory for the forthcoming release.
We don't yet have the behavior we want for looking ahead at the type label.
This commit is contained in:
parent
f873bd93b7
commit
11241a2b02
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ import javax.annotation.CheckReturnValue;
|
|||
* decoding the JSON. This factory's adapters expect JSON in the format of a JSON object with a
|
||||
* key whose value is a label that determines the type to which to map the JSON object.
|
||||
*/
|
||||
public final class RuntimeJsonAdapterFactory<T> implements JsonAdapter.Factory {
|
||||
// TODO(jwilson): make this class public in Moshi 1.8.
|
||||
final class RuntimeJsonAdapterFactory<T> implements JsonAdapter.Factory {
|
||||
final Class<T> baseType;
|
||||
final String labelKey;
|
||||
final Map<String, Type> labelToType = new LinkedHashMap<>();
|
||||
|
|
Loading…
Reference in a new issue