RFR: 8329760: Add indexOf(Predicate<? super E> filter) to java.util.List interface [v11]
Evemose
duke at openjdk.org
Tue Apr 23 13:54:43 UTC 2024
On Fri, 19 Apr 2024 21:36:42 GMT, xxDark <duke at openjdk.org> wrote:
> I noticed that most (if not all) methods don't ensure non-nullability of `filter` so NPE would only be thrown if the list is not empty.
Yeah, thats true. not sure if it has to throw NPE even if list is emply
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18639#issuecomment-2067350248
More information about the core-libs-dev
mailing list