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:
parent
3535bf265b
commit
2a760cb9d5
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue