Reuse own ArrayUtils.nullToEmpty()

This commit is contained in:
Gary Gregory 2024-03-31 15:33:40 -04:00
parent ab8caff3a3
commit 48f5d57fb9
1 changed files with 2 additions and 6 deletions

View File

@ -1384,12 +1384,8 @@ public class ClassUtils {
if (!ArrayUtils.isSameLength(classArray, toClassArray)) {
return false;
}
if (classArray == null) {
classArray = ArrayUtils.EMPTY_CLASS_ARRAY;
}
if (toClassArray == null) {
toClassArray = ArrayUtils.EMPTY_CLASS_ARRAY;
}
classArray = ArrayUtils.nullToEmpty(classArray);
toClassArray = ArrayUtils.nullToEmpty(toClassArray);
for (int i = 0; i < classArray.length; i++) {
if (!isAssignable(classArray[i], toClassArray[i], autoboxing)) {
return false;