Skip to content

Commit 9b75da0

Browse files
authored
Simplify FluentPropertyBeanIntrospector#propertyName (#363)
1 parent 014cc73 commit 9b75da0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/apache/commons/beanutils2/FluentPropertyBeanIntrospector.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import java.lang.reflect.Method;
2323
import java.util.Objects;
2424

25-
import org.apache.commons.lang3.StringUtils;
2625
import org.apache.commons.logging.Log;
2726
import org.apache.commons.logging.LogFactory;
2827

@@ -159,6 +158,6 @@ public void introspect(final IntrospectionContext icontext) throws Introspection
159158
*/
160159
private String propertyName(final Method m) {
161160
final String methodName = m.getName().substring(getWriteMethodPrefix().length());
162-
return methodName.length() > 1 ? Introspector.decapitalize(methodName) : StringUtils.toRootLowerCase(methodName);
161+
return Introspector.decapitalize(methodName);
163162
}
164163
}

0 commit comments

Comments
 (0)