diff --git a/src/java/org/apache/commons/lang/builder/ToStringBuilder.java b/src/java/org/apache/commons/lang/builder/ToStringBuilder.java index 8e3edf481..54be38fcb 100644 --- a/src/java/org/apache/commons/lang/builder/ToStringBuilder.java +++ b/src/java/org/apache/commons/lang/builder/ToStringBuilder.java @@ -945,7 +945,7 @@ public class ToStringBuilder { * @since 2.0 */ public ToStringBuilder appendAsObjectToString(Object object) { - ObjectUtils.appendIdentityToString(this.getStringBuffer(), object); + ObjectUtils.identityToString(this.getStringBuffer(), object); return this; } diff --git a/src/java/org/apache/commons/lang/builder/ToStringStyle.java b/src/java/org/apache/commons/lang/builder/ToStringStyle.java index b6fda73c3..e23ff5359 100644 --- a/src/java/org/apache/commons/lang/builder/ToStringStyle.java +++ b/src/java/org/apache/commons/lang/builder/ToStringStyle.java @@ -563,7 +563,7 @@ public abstract class ToStringStyle implements Serializable { * @since 2.2 */ protected void appendCyclicObject(StringBuffer buffer, String fieldName, Object value) { - ObjectUtils.appendIdentityToString(buffer, value); + ObjectUtils.identityToString(buffer, value); } /**