Skip to content

Commit 0c93058

Browse files
author
teaey
committed
default value always equals default value , so the value never set to target bean's properties.
1 parent 27917f2 commit 0c93058

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/AbstractConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected void appendAnnotation(Class<?> annotationClass, Object annotation) {
111111
}
112112
String setter = "set" + property.substring(0, 1).toUpperCase() + property.substring(1);
113113
Object value = method.invoke(annotation, new Object[0]);
114-
if (value != null && ! value.equals(method.getDefaultValue())) {
114+
if (value != null) {
115115
Class<?> parameterType = ReflectUtils.getBoxedClass(method.getReturnType());
116116
if ("filter".equals(property) || "listener".equals(property)) {
117117
parameterType = String.class;

pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -539,14 +539,14 @@
539539
</roles>
540540
<timezone>+8</timezone>
541541
</developer>
542-
<developer>
543-
<name>WuXiaoFei(Teaey)</name>
544-
<id>xiaofei.wxf</id>
545-
<email>xiaofei.wxf (AT) alibaba-inc.com</email>
546-
<roles>
547-
<role>Developer</role>
548-
</roles>
549-
<timezone>+8</timezone>
550-
</developer>
542+
<developer>
543+
<name>WuXiaoFei(Teaey)</name>
544+
<id>xiaofei.wxf</id>
545+
<email>xiaofei.wxf (AT) alibaba-inc.com</email>
546+
<roles>
547+
<role>Developer</role>
548+
</roles>
549+
<timezone>+8</timezone>
550+
</developer>
551551
</developers>
552552
</project>

0 commit comments

Comments
 (0)