Skip to content

Add @Nullable to some equals parameters. - #175

Merged
cpovirk merged 1 commit into
mainfrom
equalparammissing
Oct 13, 2026
Merged

cpovirk merged 1 commit into
mainfrom
equalparammissing

Conversation

@cpovirk

@cpovirk cpovirk commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

I didn't run https://errorprone.info/bugpattern/EqualsMissingNullable (yet? :)), just https://errorprone.info/bugpattern/ParameterMissingNullable.

As usual, adding @Nullable to parameters doesn't usually directly buy us a lot (especially for equals), but it can be useful. It also gets these off my radar for when I'm trying to cover more interesting parameter cases.

I didn't run https://errorprone.info/bugpattern/EqualsMissingNullable (yet? :)), just https://errorprone.info/bugpattern/ParameterMissingNullable.

As usual, adding `@Nullable` to parameters [doesn't usually directly buy us a _lot_](#171) (especially for `equals`), but it can be useful. It also gets these off my radar for when I'm trying to cover more interesting parameter cases.
@cpovirk
cpovirk merged commit 6a7a244 into main Oct 13, 2026
30 checks passed
@cpovirk
cpovirk deleted the equalparammissing branch October 13, 2026 22:47
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.

2 participants