Skip to content
Permalink
Browse files

8241742: Remove the preview status for methods introduced for Text Bl…

…ocks

Reviewed-by: psandoz, chegar, alanb
  • Loading branch information
JimLaskey committed Apr 9, 2020
1 parent 36f2293 commit d9bf9348319806bc94a36cff19d72eba81948173
@@ -2973,8 +2973,6 @@ private int lastIndexOfNonWhitespace() {
* @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 @@ private static int outdent(List<String> lines) {
*
* @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 static String format(Locale l, String format, Object... args) {
* @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();
}
@@ -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;
@@ -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 {
@@ -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 {

0 comments on commit d9bf934

Please sign in to comment.