Skip to content

Avoid testing identity equality on Boolean instances. - #1690

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_962375395
Aug 10, 2026
Merged

Avoid testing identity equality on Boolean instances.#1690
copybara-service[bot] merged 1 commit into
masterfrom
test_962375395

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Avoid testing identity equality on Boolean instances.

JEP 401 is making such comparisons equivalent to value-based equality.

That doesn't actually affect the usages here, which compare value types to non-value types. So we could keep those tests as they are if we want; we'd just likely eventually receive some robocomments that want us to migrate them to isEqualTo.

RELNOTES=n/a

[JEP 401](https://openjdk.org/jeps/401) is making such comparisons equivalent to value-based equality.

That doesn't actually affect the usages here, which compare value types to non-value types. So we could keep those tests as they are if we want; we'd just likely eventually receive some robocomments that want us to migrate them to `isEqualTo`.

RELNOTES=n/a
PiperOrigin-RevId: 962399630
@copybara-service
copybara-service Bot merged commit 2b95613 into master Aug 10, 2026
@copybara-service
copybara-service Bot deleted the test_962375395 branch August 10, 2026 22:24
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