Fix deprecation in Spring Framework

This commit is contained in:
Stephane Nicoll 2023-09-13 18:04:55 +02:00
parent 4243456590
commit 77a85fd180

View File

@ -18,6 +18,8 @@ package org.springframework.boot.test.autoconfigure.filter;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import java.util.Objects;
import java.util.Set;
import org.springframework.beans.factory.BeanClassLoaderAware;
@ -135,11 +137,11 @@ public abstract class AnnotationCustomizableTypeExcludeFilter extends TypeExclud
int result = 0;
result = prime * result + Boolean.hashCode(hasAnnotation());
for (FilterType filterType : FilterType.values()) {
result = prime * result + ObjectUtils.nullSafeHashCode(getFilters(filterType));
result = prime * result + Arrays.hashCode(getFilters(filterType));
}
result = prime * result + Boolean.hashCode(isUseDefaultFilters());
result = prime * result + ObjectUtils.nullSafeHashCode(getDefaultIncludes());
result = prime * result + ObjectUtils.nullSafeHashCode(getComponentIncludes());
result = prime * result + Objects.hashCode(getDefaultIncludes());
result = prime * result + Objects.hashCode(getComponentIncludes());
return result;
}