-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Ensure all packages declare package-info.java
with null-safety annotations
#30056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @sbrannen , this task seems to be straightforward, I would appreciate it if you allow me to do it. Thank you |
JavadocPackage
Checkstyle module to require package-info.java
filespackage-info.java
with null-safety annotations
Hi @edyda99,
Indeed it does seem rather straightforward; however, it may end up being more work than you'd expect. I have updated the title and description of this issue to reflect the scope and expected deliverables.
Please review the updated scope and deliverables. If you're still up to the task, please let me know and I'll assign it to you. Ideally, we'd like to address this before 6.0.7. So please keep that in mind. |
Hi, first thank you a lot for giving me the opportunity.
Please correct me if I said anything wrong. I will dedicate this week to this task if you allow me and will push on a daily basis so you can track my progress. Again thank you! |
This is my pull request: #30069 |
@sbrannen My mr is ready for your comments. These two options are available in my commit, I am waiting for your advice. Thank you a lot |
Overview
Since Spring Framework 5.0 (see #20099), we annotate packages in
package-info.java
files with null-safety annotations such as@NonNullApi
; however, not all packages containpackage-info.java
files which prevents us from enforcing non-null semantics by default for those packages.Scope
This applies to all packages within
src/main
. Conversely, this does not apply to packages insrc/test
.Deliverables
JavadocPackage
Checkstyle module to requirepackage-info.java
files for all packages undersrc/main
.package-info.java
files include null-safety annotations – for example, via Checkstyle.package-info.java
files include null-safety annotations, configure the necessary infrastructure.package-info.java
files with package-level Javadoc and null-safety annotations.The text was updated successfully, but these errors were encountered: