mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8138732: Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
Reviewed-by: dholmes, alanb, psandoz, kvn, egahlin
This commit is contained in:
parent
4b16f8ab94
commit
2a406f3ce5
64 changed files with 488 additions and 488 deletions
|
@ -27,7 +27,7 @@ package java.lang;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||
import jdk.internal.vm.annotation.IntrinsicCandidate;
|
||||
|
||||
/**
|
||||
* A thread-safe, mutable sequence of characters.
|
||||
|
@ -123,7 +123,7 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
|||
* Constructs a string buffer with no characters in it and an
|
||||
* initial capacity of 16 characters.
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public StringBuffer() {
|
||||
super(16);
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
|||
* @throws NegativeArraySizeException if the {@code capacity}
|
||||
* argument is less than {@code 0}.
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public StringBuffer(int capacity) {
|
||||
super(capacity);
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
|||
*
|
||||
* @param str the initial contents of the buffer.
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public StringBuffer(String str) {
|
||||
super(str);
|
||||
}
|
||||
|
@ -302,7 +302,7 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
|||
}
|
||||
|
||||
@Override
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public synchronized StringBuffer append(String str) {
|
||||
toStringCache = null;
|
||||
super.append(str);
|
||||
|
@ -414,7 +414,7 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
|||
}
|
||||
|
||||
@Override
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public synchronized StringBuffer append(char c) {
|
||||
toStringCache = null;
|
||||
super.append(c);
|
||||
|
@ -422,7 +422,7 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
|||
}
|
||||
|
||||
@Override
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public synchronized StringBuffer append(int i) {
|
||||
toStringCache = null;
|
||||
super.append(i);
|
||||
|
@ -704,7 +704,7 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
|||
}
|
||||
|
||||
@Override
|
||||
@HotSpotIntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public synchronized String toString() {
|
||||
if (toStringCache == null) {
|
||||
return toStringCache =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue