File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/org/apache/commons/beanutils2 Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2020import java .beans .Introspector ;
2121import java .beans .PropertyDescriptor ;
2222import java .lang .reflect .Method ;
23- import java .util .Locale ;
2423import java .util .Objects ;
2524
25+ import org .apache .commons .lang3 .StringUtils ;
2626import org .apache .commons .logging .Log ;
2727import org .apache .commons .logging .LogFactory ;
2828
@@ -159,6 +159,6 @@ public void introspect(final IntrospectionContext icontext) throws Introspection
159159 */
160160 private String propertyName (final Method m ) {
161161 final String methodName = m .getName ().substring (getWriteMethodPrefix ().length ());
162- return methodName .length () > 1 ? Introspector .decapitalize (methodName ) : methodName . toLowerCase ( Locale . ROOT );
162+ return methodName .length () > 1 ? Introspector .decapitalize (methodName ) : StringUtils . toRootLowerCase ( methodName );
163163 }
164164}
Original file line number Diff line number Diff line change 1818
1919import java .lang .reflect .Array ;
2020import java .util .Collection ;
21- import java .util .Locale ;
2221import java .util .Objects ;
2322
2423import org .apache .commons .beanutils2 .ConversionException ;
2524import org .apache .commons .beanutils2 .ConvertUtils ;
2625import org .apache .commons .beanutils2 .Converter ;
26+ import org .apache .commons .lang3 .StringUtils ;
2727import org .apache .commons .logging .Log ;
2828import org .apache .commons .logging .LogFactory ;
2929
@@ -66,7 +66,7 @@ public abstract class AbstractConverter<D> implements Converter<D> {
6666 * @return the given string trimmed and converter to lower-case.
6767 */
6868 protected static String toLowerCase (final Object value ) {
69- return toString (value ). toLowerCase ( Locale . ROOT );
69+ return StringUtils . toRootLowerCase ( toString (value ));
7070 }
7171
7272 /**
You can’t perform that action at this time.
0 commit comments