Skip to content

Commit d8f0cb5

Browse files
committed
Simplify FluentPropertyBeanIntrospector#propertyName
1 parent c0d16f2 commit d8f0cb5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.beans.Introspector;
2121
import java.beans.PropertyDescriptor;
2222
import java.lang.reflect.Method;
23-
import java.util.Locale;
2423

2524
import org.apache.commons.logging.Log;
2625
import org.apache.commons.logging.LogFactory;
@@ -181,7 +180,6 @@ public void introspect(final IntrospectionContext icontext)
181180
private String propertyName(final Method m) {
182181
final String methodName = m.getName().substring(
183182
getWriteMethodPrefix().length());
184-
return methodName.length() > 1 ? Introspector.decapitalize(methodName) : methodName
185-
.toLowerCase(Locale.ROOT);
183+
return Introspector.decapitalize(methodName);
186184
}
187185
}

0 commit comments

Comments
 (0)