RFR: 8266571: Sequenced Collections [v2]

Stuart Marks smarks at openjdk.org
Wed Apr 19 02:44:09 UTC 2023


On Sat, 25 Mar 2023 07:19:49 GMT, Rémi Forax <forax at openjdk.org> wrote:

>> Stuart Marks has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - More specification tweaks.
>>  - Add simple overrides to ArrayList.
>
> src/java.base/share/classes/java/util/Collections.java line 6023:
> 
>> 6021:      */
>> 6022:     private static class SequencedSetFromMap<E> extends SetFromMap<E> implements SequencedSet<E> {
>> 6023:         private final E nsee(Map.Entry<E, Boolean> e) {
> 
> `static` instead of `final`

Can't be static because it needs to have type variable E in scope.

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

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


More information about the core-libs-dev mailing list