-
Bug
-
Resolution: Fixed
-
P3
-
9
-
None
Lists produced by the various List.of() factories does not accept null elements or parameters. For consistency one would expect the same from indexOf.
Overridden implementations can profitably be implemented to avoid going through AbstractList.indexOf, which allocates iterators to implement the behavior.
Same issue applies to the lastIndexOf method.
Overridden implementations can profitably be implemented to avoid going through AbstractList.indexOf, which allocates iterators to implement the behavior.
Same issue applies to the lastIndexOf method.