Skip to content

Let JsonDouble#equals(Object) be in the same manner as Double#equals(Object), where 0.0 and -0.0 are not equal - #12

Open
dmikurube wants to merge 1 commit into
JsonLong-JsonDouble-never-equal-to-each-otherfrom
JsonDouble-equals-plus-0.0-minus-0.0
Open

dmikurube wants to merge 1 commit into
JsonLong-JsonDouble-never-equal-to-each-otherfrom
JsonDouble-equals-plus-0.0-minus-0.0

Conversation

@dmikurube

Copy link
Copy Markdown
Member

Note that it changes the equality only between 0.0 and -0.0, which were considered to be equal.

It resolves the inconsistency between #equals(Object) and #hashCode().

…Object), where 0.0 and -0.0 are not equal

Note that it changes the equality only between 0.0 and -0.0, which were considered to be equal.

It resolves the inconsistency between #equals(Object) and #hashCode().
@dmikurube
dmikurube requested a review from a team as a code owner October 8, 2026 13:56
@hiroyuki-sato

Copy link
Copy Markdown
Member

LGTM👍

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants