spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

Remove javadoc warnings for spring-security-config

Open rwinch opened this issue 10 months ago • 5 comments

See gh-18443 for more details.

rwinch avatar Jan 09 '26 20:01 rwinch

I would like to work on this issue. I'll fix the javadoc warnings and submit a PR.

NiMv1 avatar Jan 10 '26 12:01 NiMv1

After investigating, I found that this module has many interconnected javadoc warnings across multiple large files (HttpSecurity.java, ServerHttpSecurity.java, etc.). The fixes require careful coordination to avoid breaking the class structure.

I'll step back from this issue to allow someone more familiar with the codebase to take it on. Thank you!

NiMv1 avatar Jan 10 '26 12:01 NiMv1

I had a look at this and started with some easier changes. What I'm unsure about is the warning about {@link #featurePolicy(Customizer)} on the comment for FeaturePolicySpec#and. It think that it actually means HeaderSpec#featurePolicy(Customizer) but that method doesn't exist. HeaderSpec#featurePolicy(String) exists but it is deprecated itself and says that permissionPolicy is to be used instead. I'm not sure how to deal with this

thuri avatar Jan 18 '26 16:01 thuri

The problem with #featurePolicy is also discussed in gh-17492

thuri avatar Jan 18 '26 17:01 thuri

I fixed the javadoc issue by referencing #featurePolicy(String) for now. When gh-17492 is fixed the javadoc can be updated and must be updated as the javadoc-warnings-error plugin will the fail the build when the old method is removed

thuri avatar Jan 21 '26 21:01 thuri