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 * @since 13
* *
*/ */
@jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.TEXT_BLOCKS,
essentialAPI=true)
public String stripIndent() { public String stripIndent() {
int length = length(); int length = length();
if (length == 0) { if (length == 0) {
@ -3107,8 +3105,6 @@ public final class String
* *
* @since 13 * @since 13
*/ */
@jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.TEXT_BLOCKS,
essentialAPI=true)
public String translateEscapes() { public String translateEscapes() {
if (isEmpty()) { if (isEmpty()) {
return ""; return "";
@ -3369,8 +3365,6 @@ public final class String
* @since 13 * @since 13
* *
*/ */
@jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.TEXT_BLOCKS,
essentialAPI=true)
public String formatted(Object... args) { public String formatted(Object... args) {
return new Formatter().format(this, args).toString(); return new Formatter().format(this, args).toString();
} }

View File

@ -23,10 +23,10 @@
/* /*
* @test * @test
* bug 8203444 * @bug 8203444
* @summary Unit tests for instance versions of String#format * @summary Unit tests for instance versions of String#format
* @compile --enable-preview -source ${jdk.version} Formatted.java * @compile Formatted.java
* @run main/othervm --enable-preview Formatted * @run main Formatted
*/ */
import java.util.Locale; import java.util.Locale;

View File

@ -25,8 +25,8 @@
* @test * @test
* @bug 8223775 * @bug 8223775
* @summary This exercises String#stripIndent patterns and limits. * @summary This exercises String#stripIndent patterns and limits.
* @compile --enable-preview -source ${jdk.version} StripIndent.java * @compile StripIndent.java
* @run main/othervm --enable-preview StripIndent * @run main StripIndent
*/ */
public class StripIndent { public class StripIndent {

View File

@ -25,8 +25,8 @@
* @test * @test
* @bug 8223780 * @bug 8223780
* @summary This exercises String#translateEscapes patterns and limits. * @summary This exercises String#translateEscapes patterns and limits.
* @compile --enable-preview -source ${jdk.version} TranslateEscapes.java * @compile TranslateEscapes.java
* @run main/othervm --enable-preview TranslateEscapes * @run main TranslateEscapes
*/ */
public class TranslateEscapes { public class TranslateEscapes {