1
0
mirror of synced 2026-08-05 09:47:05 +00:00

Fix consistency with Nullability Usage

Issue gh-18564
This commit is contained in:
Robert Winch
2026-01-22 14:48:05 -06:00
parent ab3298e917
commit d7fbf3673a
20 changed files with 32 additions and 46 deletions
@@ -36,7 +36,7 @@ public class OneTimeTokenAuthenticationToken extends AbstractAuthenticationToken
@Serial
private static final long serialVersionUID = -8691636031126328365L;
private @Nullable final Object principal;
private final @Nullable Object principal;
private @Nullable String tokenValue;
@@ -32,7 +32,7 @@ public class MethodInvocationResult {
private final MethodInvocation methodInvocation;
private @Nullable final Object result;
private final @Nullable Object result;
/**
* Construct a {@link MethodInvocationResult} with the provided parameters
@@ -40,7 +40,6 @@ import tools.jackson.databind.json.JsonMapper;
import org.springframework.aop.Pointcut;
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
import org.springframework.lang.NonNull;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.authentication.TestAuthentication;
@@ -445,7 +444,7 @@ public class AuthorizationAdvisorProxyFactoryTests {
}
@Override
public int compareTo(@NonNull User that) {
public int compareTo(User that) {
return this.id.compareTo(that.getId());
}
@@ -455,7 +454,6 @@ public class AuthorizationAdvisorProxyFactoryTests {
List<User> users = List.of(new User("1", "first", "last"));
@NonNull
@Override
public Iterator<User> iterator() {
return this.users.iterator();
@@ -25,7 +25,6 @@ import reactor.core.publisher.Mono;
import reactor.test.StepVerifier;
import org.springframework.aop.Pointcut;
import org.springframework.lang.NonNull;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.authentication.TestAuthentication;
@@ -193,7 +192,7 @@ public class ReactiveAuthorizationAdvisorProxyFactoryTests {
}
@Override
public int compareTo(@NonNull User that) {
public int compareTo(User that) {
return this.id.compareTo(that.getId());
}
@@ -207,7 +206,6 @@ public class ReactiveAuthorizationAdvisorProxyFactoryTests {
return Flux.fromIterable(this.users);
}
@NonNull
@Override
public Iterator<User> iterator() {
return this.users.iterator();