File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/main/java/org/springframework/security/data/repository/query Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id ' security-nullability'
3
+ }
4
+
1
5
apply plugin : ' io.spring.convention.spring-module'
2
6
3
7
dependencies {
Original file line number Diff line number Diff line change 29
29
import org .springframework .security .core .context .SecurityContextHolder ;
30
30
import org .springframework .security .core .context .SecurityContextHolderStrategy ;
31
31
import org .springframework .util .Assert ;
32
+ import org .jspecify .annotations .Nullable ;
33
+ import org .jspecify .annotations .NullUnmarked ;
32
34
33
35
/**
34
36
* <p>
@@ -93,7 +95,7 @@ public class SecurityEvaluationContextExtension implements EvaluationContextExte
93
95
private SecurityContextHolderStrategy securityContextHolderStrategy = SecurityContextHolder
94
96
.getContextHolderStrategy ();
95
97
96
- private Authentication authentication ;
98
+ private @ Nullable Authentication authentication ;
97
99
98
100
private AuthenticationTrustResolver trustResolver = new AuthenticationTrustResolverImpl ();
99
101
@@ -146,7 +148,7 @@ public void setSecurityContextHolderStrategy(SecurityContextHolderStrategy secur
146
148
this .securityContextHolderStrategy = securityContextHolderStrategy ;
147
149
}
148
150
149
- private Authentication getAuthentication () {
151
+ private @ Nullable Authentication getAuthentication () {
150
152
if (this .authentication != null ) {
151
153
return this .authentication ;
152
154
}
You can’t perform that action at this time.
0 commit comments