Skip to content

Mark targetDomainObject as @Nullable in PermissionEvaluator#18260

Merged
rwinch merged 1 commit intospring-projects:mainfrom
therepanic:gh-18259
Feb 24, 2026
Merged

Mark targetDomainObject as @Nullable in PermissionEvaluator#18260
rwinch merged 1 commit intospring-projects:mainfrom
therepanic:gh-18259

Conversation

@therepanic
Copy link
Copy Markdown
Contributor

Currently, there are other places where PermissionEvaluator is inherited and methods are overridden. However, these places aren't yet covered by jspecify. I expect that in the future, when these places are covered by jspecify, we'll ensure that @Nullable is used (the build simply won't pass).

Closes: gh-18259

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 3, 2025
Closes: spring-projectsgh-18259

Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
@rwinch rwinch self-assigned this Feb 24, 2026
@rwinch rwinch added in: core An issue in spring-security-core type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 24, 2026
@rwinch rwinch added this to the 7.1.0-M3 milestone Feb 24, 2026
@rwinch rwinch merged commit 9f1381c into spring-projects:main Feb 24, 2026
6 checks passed
@rwinch
Copy link
Copy Markdown
Member

rwinch commented Feb 24, 2026

Thanks for the Pull Request! This is now merged into main 😄

@rwinch
Copy link
Copy Markdown
Member

rwinch commented Feb 24, 2026

This actually broke the build likely due to being rebased. I've revered the pull request changes and we will reopen the original issue. I am unable to reopen this pull request, so if you have fixes please send a new pull request. I'm sorry for the trouble here.

@rwinch rwinch removed this from the 7.1.0-M3 milestone Feb 24, 2026
@rwinch rwinch added the status: declined A suggestion or change that we don't feel we should currently apply label Feb 24, 2026
@therepanic
Copy link
Copy Markdown
Contributor Author

therepanic commented Feb 24, 2026

Hi, Rob @rwinch. I have added a new PR #18796 explaining why there was such confusion.

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

Labels

in: core An issue in spring-security-core status: declined A suggestion or change that we don't feel we should currently apply type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PermissionEvaluator targetDomainObject should be @Nullable

3 participants