< prev index next >

src/java.compiler/share/classes/javax/lang/model/element/Modifier.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  90      *
  91      * The modifier {@code non-sealed}
  92      * @since 15
  93      */
  94     @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SEALED_CLASSES,
  95             essentialAPI=false)
  96     NON_SEALED {
  97         public String toString() {
  98             return "non-sealed";
  99         }
 100     },
 101     /** The modifier {@code final} */           FINAL,
 102     /** The modifier {@code transient} */       TRANSIENT,
 103     /** The modifier {@code volatile} */        VOLATILE,
 104     /** The modifier {@code synchronized} */    SYNCHRONIZED,
 105     /** The modifier {@code native} */          NATIVE,
 106     /** The modifier {@code strictfp} */        STRICTFP;
 107 
 108     /**
 109      * Returns this modifier's name as defined in <cite>The
 110      * Java&trade; Language Specification</cite>.
 111      * The modifier name is the {@linkplain #name() name of the enum
 112      * constant} in lowercase and with any underscores ("{@code _}")
 113      * replaced with hyphens ("{@code -}").
 114      * @return the modifier's name
 115      */
 116     @Override
 117     public String toString() {
 118         return name().toLowerCase(java.util.Locale.US);
 119     }
 120 }


  90      *
  91      * The modifier {@code non-sealed}
  92      * @since 15
  93      */
  94     @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SEALED_CLASSES,
  95             essentialAPI=false)
  96     NON_SEALED {
  97         public String toString() {
  98             return "non-sealed";
  99         }
 100     },
 101     /** The modifier {@code final} */           FINAL,
 102     /** The modifier {@code transient} */       TRANSIENT,
 103     /** The modifier {@code volatile} */        VOLATILE,
 104     /** The modifier {@code synchronized} */    SYNCHRONIZED,
 105     /** The modifier {@code native} */          NATIVE,
 106     /** The modifier {@code strictfp} */        STRICTFP;
 107 
 108     /**
 109      * Returns this modifier's name as defined in <cite>The
 110      * Java Language Specification</cite>.
 111      * The modifier name is the {@linkplain #name() name of the enum
 112      * constant} in lowercase and with any underscores ("{@code _}")
 113      * replaced with hyphens ("{@code -}").
 114      * @return the modifier's name
 115      */
 116     @Override
 117     public String toString() {
 118         return name().toLowerCase(java.util.Locale.US);
 119     }
 120 }
< prev index next >