Remove an unnecessary cast from example code.
This commit is contained in:
parent
00946277e8
commit
0ac36805c2
|
@ -51,7 +51,7 @@ import java.lang.reflect.Type;
|
|||
* class IdDeserializer implements JsonDeserializer<Id>() {
|
||||
* public Id deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
|
||||
* throws JsonParseException {
|
||||
* return (Id) new Id((Class)typeOfT, id.getValue());
|
||||
* return new Id((Class)typeOfT, id.getValue());
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user