Skip to content

Commit c8afdd5

Browse files
author
teaey
committed
fix #151
1 parent 85d110b commit c8afdd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ protected synchronized void doExport() {
207207
generic = Boolean.FALSE.toString();
208208
}
209209
if(local !=null){
210-
if(local=="true"){
210+
if("true".equals(local)){
211211
local=interfaceName+"Local";
212212
}
213213
Class<?> localClass;
@@ -221,7 +221,7 @@ protected synchronized void doExport() {
221221
}
222222
}
223223
if(stub !=null){
224-
if(stub=="true"){
224+
if("true".equals(stub)){
225225
stub=interfaceName+"Stub";
226226
}
227227
Class<?> stubClass;

0 commit comments

Comments
 (0)