Open squaregoldfish opened 5 years ago
The equals method is somewhat abused in various parts of the codebase. This should be rectified.
equals
Wherever an equals method is used, make sure it is used sensibly* and that the corresponding hashCode method is present.
hashCode
Example: equals method just compares one of the fields, and we call equals with that field instead of the object.
NewInstrumentBean.removeFile
The
equals
method is somewhat abused in various parts of the codebase. This should be rectified.Wherever an
equals
method is used, make sure it is used sensibly* and that the correspondinghashCode
method is present.Example:
equals
method just compares one of the fields, and we callequals
with that field instead of the object.