Skip to content

Remove compiler warnings in spring-security-ldap#18559

Merged
rwinch merged 2 commits intospring-projects:mainfrom
dlwldnjs1009:gh-18430
Jan 26, 2026
Merged

Remove compiler warnings in spring-security-ldap#18559
rwinch merged 2 commits intospring-projects:mainfrom
dlwldnjs1009:gh-18430

Conversation

@dlwldnjs1009
Copy link
Contributor

@dlwldnjs1009 dlwldnjs1009 commented Jan 22, 2026

Summary

  • Add compile-warnings-error plugin to the spring-security-ldap module
  • Replace deprecated org.springframework.lang.NonNull with
    org.jspecify.annotations.NonNull
  • Add @SuppressWarnings for unchecked / rawtypes / deprecation warnings
  • Deprecate the single-argument PasswordComparisonAuthenticator constructor
    and introduce a new constructor accepting PasswordEncoder to prepare for
    removal of deprecated LdapShaPasswordEncoder usage

Test plan

  • ./gradlew --no-build-cache clean :spring-security-ldap:check
  • ./gradlew format && ./gradlew check

Closes gh-18430

- Add
  compile-warnings-error plugin to ldap module

- Replace
  org.springframework.lang.NonNull with org.jspecify.annotations.NonNull

-
  Add @SuppressWarnings for unchecked/rawtypes/deprecation warnings

Closes
  spring-projectsgh-18405

Signed-off-by: LeeJiWon <dlwldnjs1009@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 22, 2026
@rwinch rwinch self-assigned this Jan 23, 2026
@rwinch rwinch added in: build An issue in the build type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 23, 2026
@rwinch rwinch added this to the 7.1.0-M2 milestone Jan 23, 2026
@rwinch rwinch added the status: waiting-for-feedback We need additional information before we can continue label Jan 23, 2026
@rwinch rwinch removed their assignment Jan 23, 2026
Add new constructor accepting PasswordEncoder to eventually
remove deprecated LdapShaPasswordEncoder usage.

Closes spring-projectsgh-18430

Signed-off-by: LeeJiWon <dlwldnjs1009@gmail.com>
@rwinch rwinch self-assigned this Jan 26, 2026
@rwinch rwinch added in: ldap An issue in spring-security-ldap and removed status: waiting-for-feedback We need additional information before we can continue labels Jan 26, 2026
@rwinch rwinch enabled auto-merge (rebase) January 26, 2026 20:42
@rwinch
Copy link
Member

rwinch commented Jan 26, 2026

Thanks! This will now be merged once the build passes

@rwinch rwinch merged commit 8946760 into spring-projects:main Jan 26, 2026
6 checks passed
@dlwldnjs1009 dlwldnjs1009 deleted the gh-18430 branch January 27, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove compiler warnings for spring-security-ldap

3 participants