mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-30 11:19:06 +00:00
Avoid "NullAway.Init" suppression in favor of explicit field handling
Closes gh-36961
This commit is contained in:
+3
-2
@@ -23,6 +23,8 @@ import java.util.Set;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
@@ -124,8 +126,7 @@ public abstract class MergedAnnotationPredicates {
|
||||
|
||||
private boolean hasLastValue;
|
||||
|
||||
@SuppressWarnings("NullAway.Init")
|
||||
private Object lastValue;
|
||||
private @Nullable Object lastValue;
|
||||
|
||||
FirstRunOfPredicate(Function<? super MergedAnnotation<A>, ?> valueExtractor) {
|
||||
Assert.notNull(valueExtractor, "Value extractor must not be null");
|
||||
|
||||
Reference in New Issue
Block a user