-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
P4
-
None
-
Affects Version/s: 8u45
-
Component/s: core-libs
-
x86_64
-
linux
A DESCRIPTION OF THE REQUEST :
Currently, public static <E extends Enum<E>> EnumSet<E> of(E first, E... rest) is supported
and also noneOf(...) is supported.
But it is easier to deal with the class if
public static <E extends Enum<E>> EnumSet<E> of(E... rest) were also supported.
That way, empty enums may be created by just enumerating the enums required.
JUSTIFICATION :
That way, empty enums may be created by just enumerating the enums required.
Currently, public static <E extends Enum<E>> EnumSet<E> of(E first, E... rest) is supported
and also noneOf(...) is supported.
But it is easier to deal with the class if
public static <E extends Enum<E>> EnumSet<E> of(E... rest) were also supported.
That way, empty enums may be created by just enumerating the enums required.
JUSTIFICATION :
That way, empty enums may be created by just enumerating the enums required.