@@ -1027,13 +1027,13 @@ public AbstractStringBuilder replace(int start, int end, String str) {
1027
1027
}
1028
1028
1029
1029
/**
1030
- * Returns a new {@code String} that contains a subsequence of
1030
+ * Returns a {@code String} that contains a subsequence of
1031
1031
* characters currently contained in this character sequence. The
1032
1032
* substring begins at the specified index and extends to the end of
1033
1033
* this sequence.
1034
1034
*
1035
1035
* @param start The beginning index, inclusive.
1036
- * @return The new string.
1036
+ * @return A string containing the specified subsequence of characters .
1037
1037
* @throws StringIndexOutOfBoundsException if {@code start} is
1038
1038
* less than zero, or greater than the length of this object.
1039
1039
*/
@@ -1042,7 +1042,7 @@ public String substring(int start) {
1042
1042
}
1043
1043
1044
1044
/**
1045
- * Returns a new character sequence that is a subsequence of this sequence.
1045
+ * Returns a character sequence that is a subsequence of this sequence.
1046
1046
*
1047
1047
* <p> An invocation of this method of the form
1048
1048
*
@@ -1072,14 +1072,14 @@ public CharSequence subSequence(int start, int end) {
1072
1072
}
1073
1073
1074
1074
/**
1075
- * Returns a new {@code String} that contains a subsequence of
1075
+ * Returns a {@code String} that contains a subsequence of
1076
1076
* characters currently contained in this sequence. The
1077
1077
* substring begins at the specified {@code start} and
1078
1078
* extends to the character at index {@code end - 1}.
1079
1079
*
1080
1080
* @param start The beginning index, inclusive.
1081
1081
* @param end The ending index, exclusive.
1082
- * @return The new string.
1082
+ * @return A string containing the specified subsequence of characters .
1083
1083
* @throws StringIndexOutOfBoundsException if {@code start}
1084
1084
* or {@code end} are negative or greater than
1085
1085
* {@code length()}, or {@code start} is
@@ -1602,11 +1602,10 @@ public AbstractStringBuilder reverse() {
1602
1602
1603
1603
/**
1604
1604
* Returns a string representing the data in this sequence.
1605
- * A new {@code String} object is allocated and initialized to
1606
- * contain the character sequence currently represented by this
1607
- * object. This {@code String} is then returned. Subsequent
1605
+ * The {@code String} object that is returned contains the character
1606
+ * sequence currently represented by this object. Subsequent
1608
1607
* changes to this sequence do not affect the contents of the
1609
- * {@code String}.
1608
+ * returned {@code String}.
1610
1609
*
1611
1610
* @return a string representation of this sequence of characters.
1612
1611
*/
0 commit comments