Community
Participate
Working Groups
Static Model classes should implement equals in order to be comparable from a model perspective.
Created attachment 67216 [details] Compare support has been added to certain classes Compare support has been added for org.eclipse.ohf.h3et.mif.core.ssm.Cardinality org.eclipse.ohf.h3et.mif.core.ssm.impl.ArtefactImpl org.eclipse.ohf.h3et.mif.core.ssm.impl.AssociationImpl org.eclipse.ohf.h3et.mif.core.ssm.impl.AttributeImpl org.eclipse.ohf.h3et.mif.core.ssm.impl.SSMContext
Committed the contributed code, leaving the bug open for second patch with the missing classes.
What's with this? I don't see the equals method in the classes mentioned. and why only those classes? Should it be deep equals? or shallow? And what to do about circularities?
We have implemented equals in our wrapper objects that wrap the ssm layer. It performs shallow comparison. I wonder if that logic belongs to the ssm layer, however if someone changes it, our compare will break. I mark this bug as fixed.