This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch 1.X in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git
commit 1eb690ed4d12e7e62711b3ea75d991f4f0022d18 Author: Gary Gregory <[email protected]> AuthorDate: Thu Jul 25 17:21:18 2024 -0400 Add @Override - Use final - Remove redundant parentheses --- .../org/apache/commons/beanutils/FluentPropertyBeanIntrospector.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/beanutils/FluentPropertyBeanIntrospector.java b/src/main/java/org/apache/commons/beanutils/FluentPropertyBeanIntrospector.java index fda6332c..a47dc86c 100644 --- a/src/main/java/org/apache/commons/beanutils/FluentPropertyBeanIntrospector.java +++ b/src/main/java/org/apache/commons/beanutils/FluentPropertyBeanIntrospector.java @@ -128,6 +128,7 @@ public class FluentPropertyBeanIntrospector implements BeanIntrospector { * @param icontext the introspection context * @throws IntrospectionException if an error occurs */ + @Override public void introspect(final IntrospectionContext icontext) throws IntrospectionException { for (final Method m : icontext.getTargetClass().getMethods()) { @@ -155,7 +156,7 @@ public class FluentPropertyBeanIntrospector implements BeanIntrospector { } } - private static void clearDescriptorsCacheHierarchy(Class<?> cls) { + private static void clearDescriptorsCacheHierarchy(final Class<?> cls) { if (cls != null && cls != Object.class) { Introspector.flushFromCaches(cls); clearDescriptorsCacheHierarchy(cls.getSuperclass()); @@ -171,7 +172,7 @@ public class FluentPropertyBeanIntrospector implements BeanIntrospector { private String propertyName(final Method m) { final String methodName = m.getName().substring( getWriteMethodPrefix().length()); - return (methodName.length() > 1) ? Introspector.decapitalize(methodName) : methodName + return methodName.length() > 1 ? Introspector.decapitalize(methodName) : methodName .toLowerCase(Locale.ENGLISH); }
