changeset 50510:3e41ca0d8cfd condy-folding

replacing the signature for Enum.describeConstable
author vromero
date Tue, 08 May 2018 07:38:01 -0700
parents 1ecd754523c6
children 902051a97d9a
files src/java.base/share/classes/java/lang/Enum.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Enum.java	Fri May 04 11:20:25 2018 -0700
+++ b/src/java.base/share/classes/java/lang/Enum.java	Tue May 08 07:38:01 2018 -0700
@@ -217,7 +217,7 @@
      * is not accessible from {@code lookup}
      */
     @Override
-    public final Optional<? extends ConstantDesc<? super E>> describeConstable() {
+    public final Optional<EnumDesc<E>> describeConstable() {
         return getDeclaringClass()
                 .describeConstable()
                 .map(c -> EnumDesc.of(c, name));