Skip to content

Allow == comparisons on Tree instances. - #6204

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_998855353
Oct 13, 2026
Merged

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

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Allow == comparisons on Tree instances.

None of javac's Tree implementations override Object.equals, so reference equality behaves identically to equals while avoiding verbosity and NullPointerException.

(This came up again in unknown commit and maybe another time previously?)

None of javac's `Tree` implementations override `Object.equals`, so reference equality behaves identically to `equals` while avoiding verbosity and `NullPointerException`.

(This came up again in unknown commit and maybe another time previously?)

PiperOrigin-RevId: 998886008
@copybara-service
copybara-service Bot merged commit 59f98c3 into master Oct 13, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_998855353 branch October 13, 2026 21:19
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