Skip to content

Commit

Permalink
Boolean class use method toString() instead of String.valueof() (#3495)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bricks-Man authored and carryxyh committed Feb 20, 2019
1 parent e918fa4 commit f415fda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ public void setLocal(Boolean local) {
if (local == null) {
setLocal((String) null);
} else {
setLocal(String.valueOf(local));
setLocal(local.toString());
}
}

Expand All @@ -623,7 +623,7 @@ public void setStub(Boolean stub) {
if (stub == null) {
setStub((String) null);
} else {
setStub(String.valueOf(stub));
setStub(stub.toString());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void setMock(Boolean mock) {
if (mock == null) {
setMock((String) null);
} else {
setMock(String.valueOf(mock));
setMock(mock.toString());
}
}

Expand Down

0 comments on commit f415fda

Please sign in to comment.