Skip to content

Implement ErrorProne check HashCodeInObjectsHash. - #6041

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_966291560
Open

Implement ErrorProne check HashCodeInObjectsHash.#6041
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_966291560

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Implement ErrorProne check HashCodeInObjectsHash.

This check detects redundant calls to hashCode() (instance or primitive wrapper)
or Objects.hash() / Objects.hashCode() inside Objects.hash(...) or Guava's
Objects.hashCode(...).

Exemptions:

  • super.hashCode()
  • Arrays.hashCode(...) and Arrays.deepHashCode(...)
  • System.identityHashCode(...)

This check detects redundant calls to `hashCode()` (instance or primitive wrapper)
or `Objects.hash()` / `Objects.hashCode()` inside `Objects.hash(...)` or Guava's
`Objects.hashCode(...)`.

Exemptions:
- `super.hashCode()`
- `Arrays.hashCode(...)` and `Arrays.deepHashCode(...)`
- `System.identityHashCode(...)`
PiperOrigin-RevId: 966291560
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