Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.2
-
None
Description
The view returned by the subList() method of a SetUniqueList checks contains() against the set of the original list.
As shown by the following test snippet.
List list = new ArrayList();
List uniqueList = SetUniqueList.decorate(list);
uniqueList.add("Hello");
uniqueList.add("World");
List subList = list.subList(0, 0);
List subUniqueList = uniqueList.subList(0, 0);
assertFalse(subList.contains("World")); // passes
assertFalse(subUniqueList.contains("World")); // fails