8241742: Remove the preview status for methods introduced for Text Blocks

Reviewed-by: psandoz, chegar, alanb
This commit is contained in:
Jim Laskey 2020-04-09 10:55:01 -03:00
parent 36f22938ed
commit d9bf934831
4 changed files with 7 additions and 13 deletions

View File

@ -2973,8 +2973,6 @@ public final class String
* @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 @@ public final class String
*
* @since 13
*/
@jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.TEXT_BLOCKS,
essentialAPI=true)
public String translateEscapes() {
if (isEmpty()) {
return "";
@ -3369,8 +3365,6 @@ public final class String
* @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();
}

View File

@ -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;

View File

@ -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 {

View File

@ -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 {