Skip to content

Conversation

@chanjin23
Copy link
Contributor

@chanjin23 chanjin23 commented Jan 17, 2026

Following the initiative to address Javadoc warnings (gh-18443), this PR fixes multiple warnings in the spring-security-core module and applies the shared build plugin to enforce zero warnings.

  1. RoleHierarchyUtils.java Updated the documentation to guide users toward modern alternatives. Replaced the deprecated manual conversion reference with a recommendation to use RoleHierarchyImpl#fromHierarchy(String) or the builder-based approach.

  2. package-info.java (org.springframework.security.access) Reflected the modern authorization architecture by replacing the reference to the deprecated AccessDecisionManager with the central AuthorizationManager interface.

  3. AuthenticationTrustResolver.java: Fixed an "invalid input: '&'" warning by replacing the raw & character with and in the isAuthenticated method's return description.

  4. SecurityAnnotationScanner.java: Resolved a @param mismatch warning. Changed the parameter name and description from element to parameter to correctly align with the method signature scan(Parameter parameter).

  5. SpringSecurityCoreVersion.java Fixed a "reference not found" warning for SpringSecurityCoreVersionSerializableTests. Since test classes are not on the main classpath, the problematic @see tag was replaced with a descriptive sentence using {@code} to maintain the reference without causing build-time errors.

  6. Apply Build Plugin: javadoc-warnings-error
    Applied the javadoc-warnings-error plugin to the spring-security-core build configuration. This ensures the build will fail if any Javadoc warning occurs, preventing warnings from being introduced in the future.

close #18445

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 17, 2026
Closes spring-projectsgh-18449

Signed-off-by: chanjin-lee <chanjin23@naver.com>
@chanjin23 chanjin23 force-pushed the gh-18449-core-javadoc branch from 914c1e5 to 69a57cd Compare January 17, 2026 13:22
- Update package-info to reference AuthorizationManager instead of AccessDecisionManager
- Improve RoleHierarchyUtils documentation with fromHierarchy() and builder-based alternatives
- Refine AuthenticationTrustResolver return description by removing redundant comma and symbol

Signed-off-by: chanjin-lee <chanjin23@naver.com>
@rwinch rwinch enabled auto-merge (rebase) January 21, 2026 21:38
@rwinch rwinch added in: docs An issue in Documentation or samples type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 21, 2026
@rwinch rwinch self-assigned this Jan 21, 2026
@rwinch rwinch added this to the 7.1.0-M2 milestone Jan 21, 2026
@rwinch
Copy link
Member

rwinch commented Jan 21, 2026

Thanks for the pull request. It appears that it broke the checkstyle/formatting. It appears that I missed providing directions to run this check on the parent issue, so I've updated the parent issue to validate this before submitting PRs in the future. I've also pushed a fix to this PR. When the PR build passes, it will be merged.

@rwinch rwinch merged commit 1cfb303 into spring-projects:main Jan 21, 2026
6 checks passed
@rwinch
Copy link
Member

rwinch commented Jan 21, 2026

Thanks again for your contribution @chanjin23 This is now merged into main!

@rwinch rwinch added in: build An issue in the build and removed type: enhancement A general enhancement labels Jan 21, 2026
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: docs An issue in Documentation or samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove javadoc warnings for spring-security-acl

3 participants