Skip to content

Make NullAway happier with Guava. - #8906

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1025679177
Nov 24, 2026
Merged

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

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Make NullAway happier with Guava.

There is more that we could do here, both to accommodate places where NullAway's JSpecify support is still forthcoming and to move away from relying on our more lenient checker's handling of APIs like ExecutionException.getCause and Class.getClassLoader. (We could configure NullAway with more lenient checking with -XepOpt:NullAway:IgnoreLibraryModelsFor=... (via).) For whatever reason, I did choose to move away from relying on our more lenient checker's handling of Method.invoke and Field.get.

RELNOTES=n/a

There is more that we could do here, both to accommodate places where NullAway's JSpecify support is still forthcoming and to move away from relying on our more lenient checker's handling of APIs like `ExecutionException.getCause` and `Class.getClassLoader`. (We could configure NullAway with more lenient checking with [`-XepOpt:NullAway:IgnoreLibraryModelsFor=...`](https://github.com/uber/NullAway/wiki/Configuration#library-models) ([via](uber/NullAway#2128)).) For whatever reason, I _did_ choose to move away from relying on our more lenient checker's handling of `Method.invoke` and `Field.get`.

RELNOTES=n/a
PiperOrigin-RevId: 1029093636
@copybara-service
copybara-service Bot merged commit 2705387 into master Nov 24, 2026
15 checks passed
@copybara-service
copybara-service Bot deleted the test_1025679177 branch November 24, 2026 16:58
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