src/java.base/share/classes/java/lang/Object.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8076112 Cdiff src/java.base/share/classes/java/lang/Object.java

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

Print this page

        

*** 23,32 **** --- 23,34 ---- * questions. */ package java.lang; + import jdk.internal.HotSpotIntrinsicCandidate; + /** * Class {@code Object} is the root of the class hierarchy. * Every class has {@code Object} as a superclass. All objects, * including arrays, implement the methods of this class. *
*** 42,51 **** --- 44,54 ---- } /** * Constructs a new object. */ + @HotSpotIntrinsicCandidate public Object() {} /** * Returns the runtime class of this {@code Object}. The returned * {@code Class} object is the object that is locked by {@code
*** 63,72 **** --- 66,76 ---- * * @return The {@code Class} object that represents the runtime * class of this object. * @jls 15.8.2 Class Literals */ + @HotSpotIntrinsicCandidate public final native Class<?> getClass(); /** * Returns a hash code value for the object. This method is * supported for the benefit of hash tables such as those provided by
*** 99,108 **** --- 103,113 ---- * * @return a hash code value for this object. * @see java.lang.Object#equals(java.lang.Object) * @see java.lang.System#identityHashCode */ + @HotSpotIntrinsicCandidate public native int hashCode(); /** * Indicates whether some other object is "equal to" this one. * <p>
*** 211,220 **** --- 216,226 ---- * that override the {@code clone} method can also * throw this exception to indicate that an instance cannot * be cloned. * @see java.lang.Cloneable */ + @HotSpotIntrinsicCandidate protected native Object clone() throws CloneNotSupportedException; /** * Returns a string representation of the object. In general, the * {@code toString} method returns a string that
src/java.base/share/classes/java/lang/Object.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File