Skip to content

Commit d9bf934

Browse files
author
Jim Laskey
committedApr 9, 2020
8241742: Remove the preview status for methods introduced for Text Blocks
Reviewed-by: psandoz, chegar, alanb
1 parent 36f2293 commit d9bf934

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed
 

‎src/java.base/share/classes/java/lang/String.java

-6
Original file line numberDiff line numberDiff line change
@@ -2973,8 +2973,6 @@ private int lastIndexOfNonWhitespace() {
29732973
* @since 13
29742974
*
29752975
*/
2976-
@jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.TEXT_BLOCKS,
2977-
essentialAPI=true)
29782976
public String stripIndent() {
29792977
int length = length();
29802978
if (length == 0) {
@@ -3107,8 +3105,6 @@ private static int outdent(List<String> lines) {
31073105
*
31083106
* @since 13
31093107
*/
3110-
@jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.TEXT_BLOCKS,
3111-
essentialAPI=true)
31123108
public String translateEscapes() {
31133109
if (isEmpty()) {
31143110
return "";
@@ -3369,8 +3365,6 @@ public static String format(Locale l, String format, Object... args) {
33693365
* @since 13
33703366
*
33713367
*/
3372-
@jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.TEXT_BLOCKS,
3373-
essentialAPI=true)
33743368
public String formatted(Object... args) {
33753369
return new Formatter().format(this, args).toString();
33763370
}

‎test/jdk/java/lang/String/Formatted.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323

2424
/*
2525
* @test
26-
* bug 8203444
26+
* @bug 8203444
2727
* @summary Unit tests for instance versions of String#format
28-
* @compile --enable-preview -source ${jdk.version} Formatted.java
29-
* @run main/othervm --enable-preview Formatted
28+
* @compile Formatted.java
29+
* @run main Formatted
3030
*/
3131

3232
import java.util.Locale;

‎test/jdk/java/lang/String/StripIndent.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
* @test
2626
* @bug 8223775
2727
* @summary This exercises String#stripIndent patterns and limits.
28-
* @compile --enable-preview -source ${jdk.version} StripIndent.java
29-
* @run main/othervm --enable-preview StripIndent
28+
* @compile StripIndent.java
29+
* @run main StripIndent
3030
*/
3131

3232
public class StripIndent {

‎test/jdk/java/lang/String/TranslateEscapes.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
* @test
2626
* @bug 8223780
2727
* @summary This exercises String#translateEscapes patterns and limits.
28-
* @compile --enable-preview -source ${jdk.version} TranslateEscapes.java
29-
* @run main/othervm --enable-preview TranslateEscapes
28+
* @compile TranslateEscapes.java
29+
* @run main TranslateEscapes
3030
*/
3131

3232
public class TranslateEscapes {

0 commit comments

Comments
 (0)
Please sign in to comment.