Skip to content

Commit

Permalink
performance
Browse files Browse the repository at this point in the history
  • Loading branch information
qq254963746 committed Jan 11, 2017
1 parent 8536d16 commit b03294c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ private static String getMethodImplCode(Integer sequence, Class<?> sourceClass,
Class<?> targetFieldClass = field.getType();

Method setMethod = ReflectionUtils.findMethod(targetClass, "set" + methodNameSuffix, targetFieldClass);
if (setMethod == null) {
setMethod = ReflectionUtils.findMethod(targetClass, "set" + field.getName(), targetFieldClass);
if (setMethod != null) {
methodNameSuffix = field.getName();
}
}
if (setMethod != null) {

// 查看这个属性是否有 PropConverter
Expand Down

0 comments on commit b03294c

Please sign in to comment.