RFR: [bworld-apis] Adding more bangs to collections

Vicente Romero vromero at openjdk.org
Sun Feb 15 01:28:17 UTC 2026


On Sat, 14 Feb 2026 23:14:47 GMT, Vicente Romero <vromero at openjdk.org> wrote:

> adding more bangs to collection apis

src/java.base/share/classes/java/util/concurrent/ArrayBlockingQueue.java line 1473:

> 1471:      */
> 1472:     public boolean removeIf(Predicate<? super E>! filter) {
> 1473:         Objects.requireNonNull(filter);

Suggestion:

src/java.base/share/classes/java/util/concurrent/ConcurrentLinkedDeque.java line 1606:

> 1604:      */
> 1605:     public boolean removeIf(Predicate<? super E>! filter) {
> 1606:         Objects.requireNonNull(filter);

Suggestion:

-------------

PR Review Comment: https://git.openjdk.org/valhalla/pull/2112#discussion_r2808243385
PR Review Comment: https://git.openjdk.org/valhalla/pull/2112#discussion_r2808244056


More information about the valhalla-dev mailing list