Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

copybara-service[bot]
Copy link
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
@copybara-service copybara-service bot merged commit c41ee92 into master Jul 12, 2024
@copybara-service copybara-service bot deleted the test_651775836 branch July 12, 2024 16:43
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