Fix broken example.

Fixes bug 360.
This commit is contained in:
Jesse Wilson 2011-10-01 04:09:38 +00:00
parent de727d8c48
commit 01661426f9
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ import java.lang.reflect.Type;
*
* <pre>
* class IdDeserializer implements JsonDeserializer&lt;Id&gt;() {
* public Id fromJson(JsonElement json, Type typeOfT, JsonDeserializationContext context)
* public Id deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
* throws JsonParseException {
* return (Id) new Id((Class)typeOfT, id.getValue());
* }

View File

@ -49,7 +49,7 @@ import java.lang.reflect.Type;
*
* <p><pre>
* class IdSerializer implements JsonSerializer&lt;Id&gt;() {
* public JsonElement toJson(Id id, Type typeOfId, JsonSerializationContext context) {
* public JsonElement serialize(Id id, Type typeOfId, JsonSerializationContext context) {
* return new JsonPrimitive(id.getValue());
* }
* }