Skip to content

Commit

Permalink
optimized code.
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jul 29, 2017
1 parent 68e346d commit 0d8d4c4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ public void parseField(DefaultJSONParser parser, Object object, Type objectType,
if (objContext != null) {
objContext.type = objectType;
}
fieldType = FieldInfo.getFieldType(this.clazz, objectType, fieldType);
fieldValueDeserilizer = parser.getConfig().getDeserializer(fieldType);
if (fieldType != objectType) {
fieldType = FieldInfo.getFieldType(this.clazz, objectType, fieldType);
fieldValueDeserilizer = parser.getConfig().getDeserializer(fieldType);
}
}

// ContextObjectDeserializer
Expand Down

0 comments on commit 0d8d4c4

Please sign in to comment.