Skip to content

Commit

Permalink
improve performance for issue alibaba#382
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Aug 8, 2015
1 parent 2c67669 commit 9670a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/alibaba/fastjson/util/TypeUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ public static final <T> T castToJavaBean(Map<String, Object> map, Class<T> clazz
method.invoke(object, new Object[] { value });
} else {
Field field = fieldDeser.getField();
Type paramType = field.getGenericType();
Type paramType = fieldDeser.getFieldType();
value = cast(value, paramType, mapping);
field.set(object, value);
}
Expand Down

0 comments on commit 9670a1c

Please sign in to comment.