Currently, Setting class computes the equals and hashCode by including the value. This is incorrect as it should only consider the name property. The way it is now, the Set<Setting> returned by toStringAddSettings could contain multiple settings with the same name.
Currently,
Setting
class computes theequals
andhashCode
by including thevalue
. This is incorrect as it should only consider thename
property. The way it is now, theSet<Setting>
returned bytoStringAddSettings
could contain multiple settings with the same name.