diff --git a/src/main/java/org/apache/commons/beanutils2/FluentPropertyBeanIntrospector.java b/src/main/java/org/apache/commons/beanutils2/FluentPropertyBeanIntrospector.java index 2783339b5..02a38110d 100644 --- a/src/main/java/org/apache/commons/beanutils2/FluentPropertyBeanIntrospector.java +++ b/src/main/java/org/apache/commons/beanutils2/FluentPropertyBeanIntrospector.java @@ -22,7 +22,6 @@ import java.lang.reflect.Method; import java.util.Objects; -import org.apache.commons.lang3.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -159,6 +158,6 @@ public void introspect(final IntrospectionContext icontext) throws Introspection */ private String propertyName(final Method m) { final String methodName = m.getName().substring(getWriteMethodPrefix().length()); - return methodName.length() > 1 ? Introspector.decapitalize(methodName) : StringUtils.toRootLowerCase(methodName); + return Introspector.decapitalize(methodName); } }