diff --git a/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java b/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java index 5e66b67f8..9cb5e7f3e 100644 --- a/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java +++ b/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java @@ -937,7 +937,7 @@ public class ToStringBuilderTest extends TestCase { * @return the String result * @throws IllegalArgumentException if the Object is null */ - public Object toStringWithStatics(Object object, ToStringStyle style, Class reflectUpToClass) { + public String toStringWithStatics(T object, ToStringStyle style, Class reflectUpToClass) { return ReflectionToStringBuilder.toString(object, style, false, true, reflectUpToClass); }