We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FluentPropertyBeanIntrospector#propertyName
1 parent 014cc73 commit 9b75da0Copy full SHA for 9b75da0
src/main/java/org/apache/commons/beanutils2/FluentPropertyBeanIntrospector.java
@@ -22,7 +22,6 @@
22
import java.lang.reflect.Method;
23
import java.util.Objects;
24
25
-import org.apache.commons.lang3.StringUtils;
26
import org.apache.commons.logging.Log;
27
import org.apache.commons.logging.LogFactory;
28
@@ -159,6 +158,6 @@ public void introspect(final IntrospectionContext icontext) throws Introspection
159
158
*/
160
private String propertyName(final Method m) {
161
final String methodName = m.getName().substring(getWriteMethodPrefix().length());
162
- return methodName.length() > 1 ? Introspector.decapitalize(methodName) : StringUtils.toRootLowerCase(methodName);
+ return Introspector.decapitalize(methodName);
163
}
164
0 commit comments