Skip to content

Add missing nullability annotations in AbstractConfiguredSecurityBuilder#19307

Open
therepanic wants to merge 1 commit into
spring-projects:mainfrom
therepanic:gh-19304
Open

Add missing nullability annotations in AbstractConfiguredSecurityBuilder#19307
therepanic wants to merge 1 commit into
spring-projects:mainfrom
therepanic:gh-19304

Conversation

@therepanic

Copy link
Copy Markdown
Contributor

Since the package containing AbstractConfiguredSecurityBuilder is annotated with @NullMarked, we should annotate the methods that return null with @Nullable.

Closes: gh-19304

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 9, 2026
Since the package containing `AbstractConfiguredSecurityBuilder` is annotated with `@NullMarked`,
we should annotate the methods that return null with `@Nullable`.

Closes: spring-projectsgh-19304

Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
Comment on lines 84 to 87

var authenticationManager: AuthenticationManager? = null
val context: ApplicationContext = http.getSharedObject(ApplicationContext::class.java)
val context: ApplicationContext = http.getSharedObject(ApplicationContext::class.java)!!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this, the build fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AbstractConfiguredSecurityBuilder.getSharedObject should be marked @Nullable

2 participants