| Summary: | Improve hashcode & equals Implementation for CDOFeatureDeltas | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Pascal Lehmann <pascal.lehmann> | ||||||
| Component: | cdo.core | Assignee: | Pascal Lehmann <pascal.lehmann> | ||||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | 4.0 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Pascal Lehmann
Hard to determine in what places we want value comparison and in what other places we want pointer comparison. Or do you think we can go with pointer comparison in all cases? If we need both approaches we could use the changes in patch v1 and a HashMap that supports overriding the hash code and equals function that is used for the elements, java.util.HashMap does not support this ;-( Created attachment 183973 [details]
Patch v1
Created attachment 184016 [details]
Patch v2 - ready to be committed
This patch removes all hashCode() and equals() implementations from all feature deltas. The default pointer equality is used instead.
Only while comparing feature deltas in a merge (where the delta is not used as a *key*) the new isStructurallyEqual() method is used. Committed Patch v2 to HEAD. Available in R20110608-1407 |