Skip to content

UnnecessarilyFullyQualified is inconsistent between module-info.java and package-info.java #6054

Description

@anthonyvdotbe

UnnecessarilyFullyQualified occurs for module-info.java:

@org.jspecify.annotations.NullMarked
module foo {}

but not for package-info.java:

@org.jspecify.annotations.NullMarked
package bar;

This inconsistency is troublesome. I'd much prefer to have the check apply to all files, changing the behavior for package-info.java files. However, package-info.java files were explicitly excluded from the check in #1652. Ideally there would be a flag to indicate whether to exclude package-info.java and module-info.java files from the check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions