mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8255262: Remove use of legacy custom @spec tag
Reviewed-by: lancea, mr, iris, alanb, darcy, mchung
This commit is contained in:
parent
a0b687bfb2
commit
0aa3c92577
69 changed files with 0 additions and 209 deletions
|
@ -1940,7 +1940,6 @@ public final class String
|
|||
* or if {@code beginIndex} is greater than {@code endIndex}
|
||||
*
|
||||
* @since 1.4
|
||||
* @spec JSR-51
|
||||
*/
|
||||
public CharSequence subSequence(int beginIndex, int endIndex) {
|
||||
return this.substring(beginIndex, endIndex);
|
||||
|
@ -2038,7 +2037,6 @@ public final class String
|
|||
* @see java.util.regex.Pattern
|
||||
*
|
||||
* @since 1.4
|
||||
* @spec JSR-51
|
||||
*/
|
||||
public boolean matches(String regex) {
|
||||
return Pattern.matches(regex, this);
|
||||
|
@ -2095,7 +2093,6 @@ public final class String
|
|||
* @see java.util.regex.Pattern
|
||||
*
|
||||
* @since 1.4
|
||||
* @spec JSR-51
|
||||
*/
|
||||
public String replaceFirst(String regex, String replacement) {
|
||||
return Pattern.compile(regex).matcher(this).replaceFirst(replacement);
|
||||
|
@ -2140,7 +2137,6 @@ public final class String
|
|||
* @see java.util.regex.Pattern
|
||||
*
|
||||
* @since 1.4
|
||||
* @spec JSR-51
|
||||
*/
|
||||
public String replaceAll(String regex, String replacement) {
|
||||
return Pattern.compile(regex).matcher(this).replaceAll(replacement);
|
||||
|
@ -2301,7 +2297,6 @@ public final class String
|
|||
* @see java.util.regex.Pattern
|
||||
*
|
||||
* @since 1.4
|
||||
* @spec JSR-51
|
||||
*/
|
||||
public String[] split(String regex, int limit) {
|
||||
/* fastpath if the regex is a
|
||||
|
@ -2399,7 +2394,6 @@ public final class String
|
|||
* @see java.util.regex.Pattern
|
||||
*
|
||||
* @since 1.4
|
||||
* @spec JSR-51
|
||||
*/
|
||||
public String[] split(String regex) {
|
||||
return split(regex, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue