RFR: 8266571: Sequenced Collections

Chen Liang liach at openjdk.org
Thu Mar 23 07:15:53 UTC 2023


On Tue, 8 Feb 2022 17:23:38 GMT, Stuart Marks <smarks at openjdk.org> wrote:

> PR for Sequenced Collections implementation.

src/java.base/share/classes/java/util/Collections.java line 5887:

> 5885:      */
> 5886:     public static <E> Set<E> newSetFromMap(Map<E, Boolean> map) {
> 5887:         if (! map.isEmpty())

Suggestion:

        if (!map.isEmpty())

src/java.base/share/classes/java/util/ReverseOrderListView.java line 75:

> 73:      */
> 74:     void checkModifiable() {
> 75:         if (! modifiable)

Suggestion:

        if (!modifiable)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/7387#discussion_r1142805672
PR Review Comment: https://git.openjdk.org/jdk/pull/7387#discussion_r1145708887


More information about the core-libs-dev mailing list