Skip to content

Ensure all packages declare package-info.java with null-safety annotations #30056

@sbrannen

Description

@sbrannen

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 contain package-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 in src/test.

Deliverables

  • Configure the JavadocPackage Checkstyle module to require package-info.java files for all packages under src/main.
  • Determine if it is possible to require that package-info.java files include null-safety annotations – for example, via Checkstyle.
  • If it's possible to require that package-info.java files include null-safety annotations, configure the necessary infrastructure.
  • Introduce missing package-info.java files with package-level Javadoc and null-safety annotations.

Metadata

Metadata

Assignees

Labels

status: supersededAn issue that has been superseded by anothertype: taskA general task

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions