RFR: 8254090: Collectors.toUnmodifiableList exposes shared secret

Claes Redestad redestad at openjdk.java.net
Thu Oct 8 22:40:27 UTC 2020


On Thu, 8 Oct 2020 20:52:01 GMT, Stuart Marks <smarks at openjdk.org> wrote:

> Add check for ArrayList.class before passing it to the shared secret.

test/jdk/java/util/stream/test/org/openjdk/tests/java/util/stream/CollectorToUnmodListTest.java line 2:

> 1: /*
> 2:  * Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.

Suggestion:

 * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.

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

PR: https://git.openjdk.java.net/jdk/pull/569


More information about the core-libs-dev mailing list