changeset 58757:60ec850952da

8241742: Remove the preview status for methods introduced for Text Blocks Reviewed-by: psandoz, chegar, alanb
author jlaskey
date Thu, 09 Apr 2020 10:55:01 -0300
parents c1700981433c
children be95ba8d08c4
files src/java.base/share/classes/java/lang/String.java test/jdk/java/lang/String/Formatted.java test/jdk/java/lang/String/StripIndent.java test/jdk/java/lang/String/TranslateEscapes.java
diffstat 4 files changed, 7 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/String.java	Thu Apr 09 14:59:11 2020 +0200
+++ b/src/java.base/share/classes/java/lang/String.java	Thu Apr 09 10:55:01 2020 -0300
@@ -2973,8 +2973,6 @@
      * @since 13
      *
      */
-    @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.TEXT_BLOCKS,
-                                 essentialAPI=true)
     public String stripIndent() {
         int length = length();
         if (length == 0) {
@@ -3107,8 +3105,6 @@
      *
      * @since 13
      */
-    @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.TEXT_BLOCKS,
-                                 essentialAPI=true)
     public String translateEscapes() {
         if (isEmpty()) {
             return "";
@@ -3369,8 +3365,6 @@
      * @since 13
      *
      */
-    @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.TEXT_BLOCKS,
-                                 essentialAPI=true)
     public String formatted(Object... args) {
         return new Formatter().format(this, args).toString();
     }
--- a/test/jdk/java/lang/String/Formatted.java	Thu Apr 09 14:59:11 2020 +0200
+++ b/test/jdk/java/lang/String/Formatted.java	Thu Apr 09 10:55:01 2020 -0300
@@ -23,10 +23,10 @@
 
 /*
  * @test
- * bug 8203444
+ * @bug 8203444
  * @summary Unit tests for instance versions of String#format
- * @compile --enable-preview -source ${jdk.version} Formatted.java
- * @run main/othervm --enable-preview Formatted
+ * @compile Formatted.java
+ * @run main Formatted
  */
 
 import java.util.Locale;
--- a/test/jdk/java/lang/String/StripIndent.java	Thu Apr 09 14:59:11 2020 +0200
+++ b/test/jdk/java/lang/String/StripIndent.java	Thu Apr 09 10:55:01 2020 -0300
@@ -25,8 +25,8 @@
  * @test
  * @bug 8223775
  * @summary This exercises String#stripIndent patterns and limits.
- * @compile --enable-preview -source ${jdk.version} StripIndent.java
- * @run main/othervm --enable-preview StripIndent
+ * @compile StripIndent.java
+ * @run main StripIndent
  */
 
 public class StripIndent {
--- a/test/jdk/java/lang/String/TranslateEscapes.java	Thu Apr 09 14:59:11 2020 +0200
+++ b/test/jdk/java/lang/String/TranslateEscapes.java	Thu Apr 09 10:55:01 2020 -0300
@@ -25,8 +25,8 @@
  * @test
  * @bug 8223780
  * @summary This exercises String#translateEscapes patterns and limits.
- * @compile --enable-preview -source ${jdk.version} TranslateEscapes.java
- * @run main/othervm --enable-preview TranslateEscapes
+ * @compile TranslateEscapes.java
+ * @run main TranslateEscapes
  */
 
 public class TranslateEscapes {