Sync RuntimeTypeAdapterFactory to recent internal API changes

This commit is contained in:
Jesse Wilson 2011-10-19 17:49:02 +00:00
parent 0e02cbb33e
commit b892c85909

View File

@ -179,7 +179,7 @@ public final class RuntimeTypeAdapterFactory<T> implements TypeAdapter.Factory {
return registerSubtype(type, type.getSimpleName());
}
@Override public <T> TypeAdapter<T> create(MiniGson context, TypeToken<T> type) {
public <T> TypeAdapter<T> create(MiniGson context, TypeToken<T> type) {
if (type.getRawType() != baseType) {
return null;
}
@ -231,7 +231,7 @@ public final class RuntimeTypeAdapterFactory<T> implements TypeAdapter.Factory {
for (Map.Entry<String, JsonElement> e : jsonObject.entrySet()) {
clone.add(e.getKey(), e.getValue());
}
Streams.write(clone, true, writer);
Streams.write(clone, writer);
}
};
}