This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git
The following commit(s) were added to refs/heads/master by this push: new ea76d1ab Reuse ArrayFill ea76d1ab is described below commit ea76d1ab897b41cd01394188986cb0e70191aa4f Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Apr 3 11:41:25 2024 -0400 Reuse ArrayFill --- src/main/java/org/apache/commons/beanutils2/MethodUtils.java | 3 ++- src/test/java/org/apache/commons/beanutils2/PropertyUtilsTestCase.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/beanutils2/MethodUtils.java b/src/main/java/org/apache/commons/beanutils2/MethodUtils.java index 74824591..239a18c1 100644 --- a/src/main/java/org/apache/commons/beanutils2/MethodUtils.java +++ b/src/main/java/org/apache/commons/beanutils2/MethodUtils.java @@ -22,6 +22,7 @@ import java.lang.ref.WeakReference; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Modifier; +import java.util.Arrays; import java.util.Collections; import java.util.Map; import java.util.WeakHashMap; @@ -98,7 +99,7 @@ public class MethodUtils { return exact == md.exact && methodName.equals(md.methodName) && cls.equals(md.cls) && - java.util.Arrays.equals(paramTypes, md.paramTypes); + Arrays.equals(paramTypes, md.paramTypes); } /** * Returns the string length of method name. I.e. if the diff --git a/src/test/java/org/apache/commons/beanutils2/PropertyUtilsTestCase.java b/src/test/java/org/apache/commons/beanutils2/PropertyUtilsTestCase.java index 19bca27e..d84c82fc 100644 --- a/src/test/java/org/apache/commons/beanutils2/PropertyUtilsTestCase.java +++ b/src/test/java/org/apache/commons/beanutils2/PropertyUtilsTestCase.java @@ -172,7 +172,7 @@ public class PropertyUtilsTestCase extends TestCase { */ private String keysToString(final Map<?, ?> map) { final Object[] mapKeys = map.keySet().toArray(); - java.util.Arrays.sort(mapKeys); + Arrays.sort(mapKeys); final StringBuilder buf = new StringBuilder(); for (int i = 0; i < mapKeys.length; ++i) { if (i != 0) {