Skip to content

In NullArgumentForNonNullParameter, don't trigger completion for NullMarked. - #4462

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

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

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

In NullArgumentForNonNullParameter, 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, both for people who might not upgrade Error Prone immediately and for anyone else (NullAway?) who writes a check that calls hasAnnotation(nullMarked).

…ullMarked`.

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, both for people who might not upgrade Error Prone immediately and for anyone else (NullAway?) who writes a check that calls `hasAnnotation(nullMarked)`.

PiperOrigin-RevId: 651801963
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