Skip to content

Commit b8b1a92

Browse files
committed
Revert "Apply Nullability to spring-security-data"
This reverts commit bbcdb23.
1 parent bbcdb23 commit b8b1a92

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

data/spring-security-data.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
plugins {
2-
id 'security-nullability'
3-
}
4-
51
apply plugin: 'io.spring.convention.spring-module'
62

73
dependencies {

data/src/main/java/org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import org.springframework.security.core.context.SecurityContextHolder;
3030
import org.springframework.security.core.context.SecurityContextHolderStrategy;
3131
import org.springframework.util.Assert;
32-
import org.jspecify.annotations.Nullable;
33-
import org.jspecify.annotations.NullUnmarked;
3432

3533
/**
3634
* <p>
@@ -95,7 +93,7 @@ public class SecurityEvaluationContextExtension implements EvaluationContextExte
9593
private SecurityContextHolderStrategy securityContextHolderStrategy = SecurityContextHolder
9694
.getContextHolderStrategy();
9795

98-
private @Nullable Authentication authentication;
96+
private Authentication authentication;
9997

10098
private AuthenticationTrustResolver trustResolver = new AuthenticationTrustResolverImpl();
10199

@@ -148,7 +146,7 @@ public void setSecurityContextHolderStrategy(SecurityContextHolderStrategy secur
148146
this.securityContextHolderStrategy = securityContextHolderStrategy;
149147
}
150148

151-
private @Nullable Authentication getAuthentication() {
149+
private Authentication getAuthentication() {
152150
if (this.authentication != null) {
153151
return this.authentication;
154152
}

0 commit comments

Comments
 (0)