Skip to content

Commit 642041a

Browse files
author
Jim Laskey
committed
8243168: Remove addition preview adornment from String::stripIndent and String::translateEscapes
Reviewed-by: chegar
1 parent 93032c6 commit 642041a

1 file changed

Lines changed: 2 additions & 20 deletions

File tree

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

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2888,15 +2888,6 @@ private int lastIndexOfNonWhitespace() {
28882888
}
28892889

28902890
/**
2891-
* {@preview Associated with text blocks, a preview feature of
2892-
* the Java language.
2893-
*
2894-
* This method is associated with <i>text blocks</i>, a preview
2895-
* feature of the Java language. Programs can only use this
2896-
* method when preview features are enabled. Preview features
2897-
* may be removed in a future release, or upgraded to permanent
2898-
* features of the Java language.}
2899-
*
29002891
* Returns a string whose value is this string, with incidental
29012892
* {@linkplain Character#isWhitespace(int) white space} removed from
29022893
* the beginning and end of every line.
@@ -2970,7 +2961,7 @@ private int lastIndexOfNonWhitespace() {
29702961
* @see String#indent(int)
29712962
* @see Character#isWhitespace(int)
29722963
*
2973-
* @since 13
2964+
* @since 15
29742965
*
29752966
*/
29762967
public String stripIndent() {
@@ -3011,15 +3002,6 @@ private static int outdent(List<String> lines) {
30113002
}
30123003

30133004
/**
3014-
* {@preview Associated with text blocks, a preview feature of
3015-
* the Java language.
3016-
*
3017-
* This method is associated with <i>text blocks</i>, a preview
3018-
* feature of the Java language. Programs can only use this
3019-
* method when preview features are enabled. Preview features
3020-
* may be removed in a future release, or upgraded to permanent
3021-
* features of the Java language.}
3022-
*
30233005
* Returns a string whose value is this string, with escape sequences
30243006
* translated as if in a string literal.
30253007
* <p>
@@ -3103,7 +3085,7 @@ private static int outdent(List<String> lines) {
31033085
*
31043086
* @jls 3.10.7 Escape Sequences
31053087
*
3106-
* @since 13
3088+
* @since 15
31073089
*/
31083090
public String translateEscapes() {
31093091
if (isEmpty()) {

0 commit comments

Comments
 (0)