src/java.base/share/classes/java/lang/Byte.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/java.base/share/classes/java/lang/Byte.java Fri Jun 26 17:30:20 2015
--- new/src/java.base/share/classes/java/lang/Byte.java Fri Jun 26 17:30:19 2015
*** 23,32 ****
--- 23,34 ----
* questions.
*/
package java.lang;
+ import jdk.internal.HotSpotIntrinsicCandidate;
+
/**
*
* The {@code Byte} class wraps a value of primitive type {@code byte}
* in an object. An object of type {@code Byte} contains a single
* field whose type is {@code byte}.
*** 96,105 ****
--- 98,108 ----
*
* @param b a byte value.
* @return a {@code Byte} instance representing {@code b}.
* @since 1.5
*/
+ @HotSpotIntrinsicCandidate
public static Byte valueOf(byte b) {
final int offset = 128;
return ByteCache.cache[(int)b + offset];
}
*** 318,327 ****
--- 321,331 ----
/**
* Returns the value of this {@code Byte} as a
* {@code byte}.
*/
+ @HotSpotIntrinsicCandidate
public byte byteValue() {
return value;
}
/**
src/java.base/share/classes/java/lang/Byte.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File