Skip to content

Add a flag to check package-info.java files in UnnecessarilyFullyQualified - #6321

Open
Pankraz76 wants to merge 1 commit into
google:masterfrom
Pankraz76:unnecessarily-fully-qualified-package-info
Open

Pankraz76 wants to merge 1 commit into
google:masterfrom
Pankraz76:unnecessarily-fully-qualified-package-info

Conversation

@Pankraz76

Copy link
Copy Markdown

UnnecessarilyFullyQualified reports fully qualified annotations in module-info.java but always skips package-info.java (since #1652), which is inconsistent for e.g. @org.jspecify.annotations.NullMarked.

Keep the existing default, but allow opting in with -XepOpt:UnnecessarilyFullyQualified:ExemptPackageInfo=false.

Fixes #6054

Claude-Session: https://claude.ai/code/session_01MTr23wrQJAFVXbxhVHBcyG

…ified

`UnnecessarilyFullyQualified` reports fully qualified annotations in
`module-info.java` but always skips `package-info.java` (since google#1652), which
is inconsistent for e.g. `@org.jspecify.annotations.NullMarked`.

Keep the existing default, but allow opting in with
`-XepOpt:UnnecessarilyFullyQualified:ExemptPackageInfo=false`.

Fixes google#6054

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MTr23wrQJAFVXbxhVHBcyG
@google-cla

google-cla Bot commented Nov 7, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant