Skip to content

In hasAnnotation, don't trigger completion for NullMarked. - #4461

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_651775836
Jul 12, 2024
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_651775836

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

In hasAnnotation, don't trigger completion for NullMarked.

Completion can fail under --release 8, leading to warning: unknown enum constant ElementType.MODULE.

This CL is one of a variety of ways that I'll be addressing google/truth#1320. It alone should be sufficient (unless there are other problems that I'm unaware of), but I'll do more for people who might not upgrade Error Prone immediately, and I'll do something cleaner for the NullArgumentForNonNullParameter check that makes the known-problematic call to hasAnnotation.

Completion can fail under `--release 8`, leading to `warning: unknown enum constant ElementType.MODULE`.

This CL is one of a variety of ways that I'll be addressing google/truth#1320. It alone should be sufficient (unless there are other problems that I'm unaware of), but I'll do more for people who might not upgrade Error Prone immediately, and I'll do something cleaner for the `NullArgumentForNonNullParameter` check that makes the known-problematic call to `hasAnnotation`.

PiperOrigin-RevId: 651801869
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.

1 participant