[
https://issues.apache.org/jira/browse/SLING-4565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert updated SLING-4565:
----------------------------------
Fix Version/s: (was: Commons JSON 2.0.14)
comparing full json object/array content (including all children) can be quite
expensive. does this really makes sense?
do other json implementations provide this in the normal equals method?
the (perhaps a bit outdated) reference implementation
https://github.com/douglascrockford/JSON-java
does not either.
> Override equals/hashcode for JSON entities
> ------------------------------------------
>
> Key: SLING-4565
> URL: https://issues.apache.org/jira/browse/SLING-4565
> Project: Sling
> Issue Type: Improvement
> Components: Commons
> Affects Versions: Commons JSON 2.0.10
> Reporter: Timothee Maret
>
> JSON entities in the package
> {code}
> org.apache.sling.commons.json
> {code}
> do not yet override the equals and hashCode methods, leaving the equals to
> compare references rather than the actual content of the entity.
> This issue is about implementing equals/hashCode on those entities in order
> to allow meaningful comparisons.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)