Skip to content

Commit

Permalink
default value always equals default value , so the value never set to…
Browse files Browse the repository at this point in the history
… target bean's properties.
  • Loading branch information
teaey committed Jan 25, 2017
1 parent 27917f2 commit 0c93058
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected void appendAnnotation(Class<?> annotationClass, Object annotation) {
}
String setter = "set" + property.substring(0, 1).toUpperCase() + property.substring(1);
Object value = method.invoke(annotation, new Object[0]);
if (value != null && ! value.equals(method.getDefaultValue())) {
if (value != null) {
Class<?> parameterType = ReflectUtils.getBoxedClass(method.getReturnType());
if ("filter".equals(property) || "listener".equals(property)) {
parameterType = String.class;
Expand Down
18 changes: 9 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -539,14 +539,14 @@
</roles>
<timezone>+8</timezone>
</developer>
<developer>
<name>WuXiaoFei(Teaey)</name>
<id>xiaofei.wxf</id>
<email>xiaofei.wxf (AT) alibaba-inc.com</email>
<roles>
<role>Developer</role>
</roles>
<timezone>+8</timezone>
</developer>
<developer>
<name>WuXiaoFei(Teaey)</name>
<id>xiaofei.wxf</id>
<email>xiaofei.wxf (AT) alibaba-inc.com</email>
<roles>
<role>Developer</role>
</roles>
<timezone>+8</timezone>
</developer>
</developers>
</project>

0 comments on commit 0c93058

Please sign in to comment.