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.
UnnecessarilyFullyQualifiedoccurs formodule-info.java:but not for
package-info.java:This inconsistency is troublesome. I'd much prefer to have the check apply to all files, changing the behavior for
package-info.javafiles. However,package-info.javafiles were explicitly excluded from the check in #1652. Ideally there would be a flag to indicate whether to excludepackage-info.javaandmodule-info.javafiles from the check.