Boolean class use method toString() instead of String.valueof() (#3495)

This commit is contained in:
Jia He 2019-02-20 10:48:58 +08:00 committed by 时无两丶
parent e918fa4632
commit f415fda034
2 changed files with 3 additions and 3 deletions

View File

@ -601,7 +601,7 @@ public abstract class AbstractInterfaceConfig extends AbstractMethodConfig {
if (local == null) {
setLocal((String) null);
} else {
setLocal(String.valueOf(local));
setLocal(local.toString());
}
}
@ -623,7 +623,7 @@ public abstract class AbstractInterfaceConfig extends AbstractMethodConfig {
if (stub == null) {
setStub((String) null);
} else {
setStub(String.valueOf(stub));
setStub(stub.toString());
}
}

View File

@ -178,7 +178,7 @@ public abstract class AbstractMethodConfig extends AbstractConfig {
if (mock == null) {
setMock((String) null);
} else {
setMock(String.valueOf(mock));
setMock(mock.toString());
}
}