diff --git a/extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java b/extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java index fe137102..8c0dcfa9 100644 --- a/extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java +++ b/extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java @@ -179,7 +179,7 @@ public final class RuntimeTypeAdapterFactory implements TypeAdapter.Factory { return registerSubtype(type, type.getSimpleName()); } - @Override public TypeAdapter create(MiniGson context, TypeToken type) { + public TypeAdapter create(MiniGson context, TypeToken type) { if (type.getRawType() != baseType) { return null; } @@ -231,7 +231,7 @@ public final class RuntimeTypeAdapterFactory implements TypeAdapter.Factory { for (Map.Entry e : jsonObject.entrySet()) { clone.add(e.getKey(), e.getValue()); } - Streams.write(clone, true, writer); + Streams.write(clone, writer); } }; }