Make RuntimeJsonAdapterFactory public

This commit is contained in:
Josiah Campbell 2018-09-27 10:44:17 -05:00
parent b7055944a9
commit 80f651a3eb

View file

@ -34,8 +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.
*/
// TODO(jwilson): make this class public in Moshi 1.8.
final class RuntimeJsonAdapterFactory<T> implements JsonAdapter.Factory {
public final class RuntimeJsonAdapterFactory<T> implements JsonAdapter.Factory {
final Class<T> baseType;
final String labelKey;
final Map<String, Type> labelToType = new LinkedHashMap<>();