diff --git a/dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/ServiceConfig.java b/dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/ServiceConfig.java index 2d420fdd60d..8ac6e61964c 100644 --- a/dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/ServiceConfig.java +++ b/dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/ServiceConfig.java @@ -207,7 +207,7 @@ protected synchronized void doExport() { generic = Boolean.FALSE.toString(); } if(local !=null){ - if(local=="true"){ + if("true".equals(local)){ local=interfaceName+"Local"; } Class localClass; @@ -221,7 +221,7 @@ protected synchronized void doExport() { } } if(stub !=null){ - if(stub=="true"){ + if("true".equals(stub)){ stub=interfaceName+"Stub"; } Class stubClass;