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+
15apply plugin : ' io.spring.convention.spring-module'
26
37dependencies {
Original file line number Diff line number Diff line change 2929import org .springframework .security .core .context .SecurityContextHolder ;
3030import org .springframework .security .core .context .SecurityContextHolderStrategy ;
3131import org .springframework .util .Assert ;
32+ import org .jspecify .annotations .Nullable ;
33+ import org .jspecify .annotations .NullUnmarked ;
3234
3335/**
3436 * <p>
@@ -93,7 +95,7 @@ public class SecurityEvaluationContextExtension implements EvaluationContextExte
9395 private SecurityContextHolderStrategy securityContextHolderStrategy = SecurityContextHolder
9496 .getContextHolderStrategy ();
9597
96- private Authentication authentication ;
98+ private @ Nullable Authentication authentication ;
9799
98100 private AuthenticationTrustResolver trustResolver = new AuthenticationTrustResolverImpl ();
99101
@@ -146,7 +148,7 @@ public void setSecurityContextHolderStrategy(SecurityContextHolderStrategy secur
146148 this .securityContextHolderStrategy = securityContextHolderStrategy ;
147149 }
148150
149- private Authentication getAuthentication () {
151+ private @ Nullable Authentication getAuthentication () {
150152 if (this .authentication != null ) {
151153 return this .authentication ;
152154 }
You can’t perform that action at this time.
0 commit comments