8071434: doc updates for java.lang.Object
Reviewed-by: rriggs
This commit is contained in:
parent
76ace03a9e
commit
0841b6a90e
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -86,12 +86,11 @@ public class Object {
|
|||||||
* for unequal objects may improve the performance of hash tables.
|
* for unequal objects may improve the performance of hash tables.
|
||||||
* </ul>
|
* </ul>
|
||||||
* <p>
|
* <p>
|
||||||
* As much as is reasonably practical, the hashCode method defined by
|
* As much as is reasonably practical, the hashCode method defined
|
||||||
* class {@code Object} does return distinct integers for distinct
|
* by class {@code Object} does return distinct integers for
|
||||||
* objects. (This is typically implemented by converting the internal
|
* distinct objects. (The hashCode may or may not be implemented
|
||||||
* address of the object into an integer, but this implementation
|
* as some function of an object's memory address at some point
|
||||||
* technique is not required by the
|
* in time.)
|
||||||
* Java™ programming language.)
|
|
||||||
*
|
*
|
||||||
* @return a hash code value for this object.
|
* @return a hash code value for this object.
|
||||||
* @see java.lang.Object#equals(java.lang.Object)
|
* @see java.lang.Object#equals(java.lang.Object)
|
||||||
@ -344,10 +343,12 @@ public class Object {
|
|||||||
* ... // Perform action appropriate to condition
|
* ... // Perform action appropriate to condition
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
* (For more information on this topic, see Section 3.2.3 in Doug Lea's
|
*
|
||||||
* "Concurrent Programming in Java (Second Edition)" (Addison-Wesley,
|
* (For more information on this topic, see section 14.2,
|
||||||
* 2000), or Item 50 in Joshua Bloch's "Effective Java Programming
|
* Condition Queues, in Brian Goetz and others' "Java Concurrency
|
||||||
* Language Guide" (Addison-Wesley, 2001).
|
* in Practice" (Addison-Wesley, 2006) or Item 69 in Joshua
|
||||||
|
* Bloch's "Effective Java (Second Edition)" (Addison-Wesley,
|
||||||
|
* 2008).
|
||||||
*
|
*
|
||||||
* <p>If the current thread is {@linkplain java.lang.Thread#interrupt()
|
* <p>If the current thread is {@linkplain java.lang.Thread#interrupt()
|
||||||
* interrupted} by any thread before or while it is waiting, then an
|
* interrupted} by any thread before or while it is waiting, then an
|
||||||
|
Loading…
x
Reference in New Issue
Block a user