Introduce @UnannotatedFor - #144
Merged
Merged
Conversation
Add a copy of checker-qual's new `@UnannotatedFor` declaration annotation, the inverse of `@AnnotatedFor`, which excludes an element from an enclosing `@AnnotatedFor` scope. The file is byte-identical to the checker-qual version, as `AnnotatedFor.java` is. Companion to eisop/checker-framework#856. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Keeps this repo's copy byte-identical to eisop/checker-framework's, per `checker/bin-devel/check-jdk-consistency.sh`. eisop/checker-framework#856 adds to the javadoc that writing both an `@AnnotatedFor` and an `@UnannotatedFor` naming the same checker on one declaration is a `conflicting.annotatedfor` warning, and that the `@AnnotatedFor` wins if it is suppressed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keeps this repo's copy of
org.checkerframework.framework.qualbyte-identical to eisop/checker-framework's, perchecker/bin-devel/check-jdk-consistency.sh(run by CI in eisop/checker-framework#856).eisop/checker-framework#856 adds
@UnannotatedFor, the inverse of@AnnotatedFor: it excludes a package, class, method, or constructor from an enclosing@AnnotatedForscope. Like@AnnotatedFor, it has anapplyToSubpackageselement and is@Repeatable(UnannotatedFor.List.class). This adds the byte-identical copy underjava.base, asAnnotatedFor.javaalready is.Merge together with eisop/checker-framework#856: without this, that PR's
check-jdk-consistency.shfails withFile missing in JDK: framework/qual/UnannotatedFor.java. Both branches are namedjspecify-eisopso CI's related-repo checkout matches them automatically.🤖 Generated with Claude Code