Remove redundant syntax
This commit is contained in:
parent
295e91a27a
commit
082b2d8b8c
|
@ -911,7 +911,7 @@ public class ToStringBuilder implements Builder<String> {
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
*/
|
*/
|
||||||
public ToStringBuilder appendAsObjectToString(final Object srcObject) {
|
public ToStringBuilder appendAsObjectToString(final Object srcObject) {
|
||||||
ObjectUtils.identityToString(this.getStringBuffer(), srcObject);
|
ObjectUtils.identityToString(getStringBuffer(), srcObject);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1024,11 +1024,11 @@ public class ToStringBuilder implements Builder<String> {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (this.getObject() == null) {
|
if (getObject() == null) {
|
||||||
this.getStringBuffer().append(this.getStyle().getNullText());
|
getStringBuffer().append(getStyle().getNullText());
|
||||||
} else {
|
} else {
|
||||||
style.appendEnd(this.getStringBuffer(), this.getObject());
|
style.appendEnd(getStringBuffer(), getObject());
|
||||||
}
|
}
|
||||||
return this.getStringBuffer().toString();
|
return getStringBuffer().toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue