I am watching the following expressions in Eclipse debugger
downsPanel.relsListModel.elementAt(4)==oldValue
and
downsPanel.relsListModel.contains(oldValue)
First of them evaluates to true, and second — to false.
This means that contains() does not does what I expect. What does it does then?
Supposing both tests were done at the same point, this can mean only one thing :
oldValue.equals(oldValue)returnsfalse.So the problem is in the
equalsmethod which must be fixed.