Remove compiler warnings for spring-security-access by dasog94 · Pull Request #18738 · spring-projects/spring-security · GitHub
Skip to content

Remove compiler warnings for spring-security-access#18738

Merged
jzheaux merged 5 commits into
spring-projects:mainfrom
dasog94:gh-18412
Mar 21, 2026
Merged

Remove compiler warnings for spring-security-access#18738
jzheaux merged 5 commits into
spring-projects:mainfrom
dasog94:gh-18412

Conversation

@dasog94

@dasog94 dasog94 commented Feb 15, 2026

Copy link
Copy Markdown

While working this issue, I found that this issue is not in #18405.
But warning logs still exist, so I proceed this issue.

What I did is below.

  • added @SuppressWarnings
  • refactor codes causing compile warnings
  • add test for setAuthorizationManagerFactory that is a alternative to setTrustResolver and setDefaultRolePrefix

About the third, some tests using deprecated functions(setTrustResolver and setDefaultRolePrefix) have to be replaced with setAuthorizationManagerFactory, but there isn't setAuthorizationManagerFactory test.
Because of that, I added new tests even if it is located in core package.
I didn't still replace all the setTrustResolver and setDefaultRolePrefix because it might be used somewhere.

@dasog94 dasog94 changed the title Gh 18412 Remove compiler warnings for spring-security-access Feb 15, 2026
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 15, 2026
@dasog94 dasog94 marked this pull request as ready for review February 15, 2026 14:24
@rwinch

rwinch commented Feb 23, 2026

Copy link
Copy Markdown
Member

@rwinch rwinch assigned rwinch and unassigned rwinch Feb 23, 2026
@rwinch rwinch added status: waiting-for-feedback We need additional information before we can continue in: build An issue in the build in: access An issue in spring-security-access and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 23, 2026
@dasog94

dasog94 commented Mar 3, 2026

Copy link
Copy Markdown
Author

I will fix. Thank you for answer.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Mar 3, 2026
@dasog94 dasog94 force-pushed the gh-18412 branch 2 times, most recently from 10f1b22 to 3dd16da Compare March 5, 2026 15:54
@dasog94

dasog94 commented Mar 18, 2026

Copy link
Copy Markdown
Author

It seems it passed checks. It already has the compile-warnings-error plugin.
Is there anything else?

Bae Jihong added 5 commits March 18, 2026 21:52
- add on tests for deprecated class
- add on tests for specific deprecated function

Closes spring-projectsgh-18412

Signed-off-by: Bae Jihong <dasog@naver.com>
… class

Closes spring-projectsgh-18412

Signed-off-by: Bae Jihong <dasog@naver.com>
- add @SupressWarnings(deprecation) because of deprecated part in logic

Closes spring-projectsgh-18412

Signed-off-by: Bae Jihong <dasog@naver.com>
- replace setTrustResolver with setAuthorizationManagerFactory in MethodSecurityExpressionRootTests
- resolve raw type warning in ExpressionBasedMessageSecurityMetadataSourceFactoryTests

Closes spring-projectsgh-18412

Signed-off-by: Bae Jihong <dasog@naver.com>
- add test for setAuthorizationManagerFactory that is a alternative to setTrustResolver and setDefaultRolePrefix

Closes spring-projectsgh-18412

Signed-off-by: Bae Jihong <dasog@naver.com>
@jzheaux jzheaux added type: enhancement A general enhancement and removed status: feedback-provided Feedback has been provided labels Mar 21, 2026
@jzheaux jzheaux self-assigned this Mar 21, 2026
@jzheaux jzheaux merged commit e9f331c into spring-projects:main Mar 21, 2026
7 checks passed
@jzheaux

jzheaux commented Mar 21, 2026

Copy link
Copy Markdown
Collaborator

@jzheaux jzheaux added this to the 7.1.0-RC1 milestone Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: access An issue in spring-security-access in: build An issue in the build type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants