Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
SVN Revision: 882389
-
Patch Available
Description
I've attached a patch for various correctness issues in our collections:
- Maps with null values used to think they were equal to every other map with the same size.
- Map.equals() and Set.equals() didn't recover from NPEs in contains().
- singletonMap()'s entry didn't implement toString().
- TreeMaps with natural ordering permitted a null element, if it was the first element ever added.
- TreeSets didn't return the right status messages on add() and remove() when nulls were in play.