Replace unnecessary else in if/else's with if guard clause.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226598 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2005-07-31 01:19:22 +00:00
parent 3535bf265b
commit 2a760cb9d5
1 changed files with 3 additions and 5 deletions

View File

@ -365,9 +365,8 @@ public StrBuilder appendNull() {
public StrBuilder append(Object obj) { public StrBuilder append(Object obj) {
if (obj == null) { if (obj == null) {
return appendNull(); return appendNull();
} else { }
return append(obj.toString()); return append(obj.toString());
}
} }
/** /**
@ -755,9 +754,8 @@ public StrBuilder appendFixedWidthPadRight(int value, int width, char padChar) {
public StrBuilder insert(int index, Object obj) { public StrBuilder insert(int index, Object obj) {
if (obj == null) { if (obj == null) {
return insert(index, nullText); return insert(index, nullText);
} else {
return insert(index, obj.toString());
} }
return insert(index, obj.toString());
} }
/** /**