-
Enhancement
-
Resolution: Not an Issue
-
P4
-
None
-
None
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
Up until Java 20, in the Java Collections Framework, the SortedSet interface directly extended the Set interface.
With the introduction of JEP431 (Sequenced Collections) in Java 21, the new SequencedSet interface extends Set (and SequencedCollection), and SortedSet now extends SequencedSet AND Set. But as stated, because SequencedSet extends Set, and SortedSet extends SequencedSet, then SortedSet no longer needs to extend Set (tools report Set is a redundant superinterface for SortedSet because of this).
Up until Java 20, in the Java Collections Framework, the SortedSet interface directly extended the Set interface.
With the introduction of JEP431 (Sequenced Collections) in Java 21, the new SequencedSet interface extends Set (and SequencedCollection), and SortedSet now extends SequencedSet AND Set. But as stated, because SequencedSet extends Set, and SortedSet extends SequencedSet, then SortedSet no longer needs to extend Set (tools report Set is a redundant superinterface for SortedSet because of this).