Fix typo in PolymorphicJsonAdapterFactory.java (#1314)

This commit is contained in:
Márton Braun
2021-03-08 19:54:19 +01:00
committed by GitHub
parent 9ac54dd33f
commit 6df66b81dc

View File

@@ -166,8 +166,8 @@ public final class PolymorphicJsonAdapterFactory<T> implements JsonAdapter.Facto
* Returns a new factory that with default to {@code fallbackJsonAdapter.fromJson(reader)} upon * Returns a new factory that with default to {@code fallbackJsonAdapter.fromJson(reader)} upon
* decoding of unrecognized labels. * decoding of unrecognized labels.
* *
* <p>The {@link JsonReader} instance will not be automatically consumed, so sure to consume it * <p>The {@link JsonReader} instance will not be automatically consumed, so make sure to consume
* within your implementation of {@link JsonAdapter#fromJson(JsonReader)} * it within your implementation of {@link JsonAdapter#fromJson(JsonReader)}
*/ */
public PolymorphicJsonAdapterFactory<T> withFallbackJsonAdapter( public PolymorphicJsonAdapterFactory<T> withFallbackJsonAdapter(
@Nullable JsonAdapter<Object> fallbackJsonAdapter) { @Nullable JsonAdapter<Object> fallbackJsonAdapter) {