Skip to content

Commit

Permalink
Fix improper null/emptiness check.
Browse files Browse the repository at this point in the history
See #3170
  • Loading branch information
mp911de committed Feb 10, 2025
1 parent 44d119b commit f493a88
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.springframework.core.annotation.MergedAnnotations;
import org.springframework.lang.NonNullApi;
import org.springframework.util.ClassUtils;
import org.springframework.util.CollectionUtils;
import org.springframework.util.MultiValueMap;

/**
Expand Down Expand Up @@ -234,7 +235,7 @@ private static <T> boolean test(Annotation annotation, String metaAnnotationName
MultiValueMap<String, @Nullable Object> attributes = AnnotatedElementUtils
.getAllAnnotationAttributes(annotation.annotationType(), metaAnnotationName);

if (attributes.isEmpty()) {
if (CollectionUtils.isEmpty(attributes)) {
return false;
}

Expand Down

0 comments on commit f493a88

Please sign in to comment.