6792545: Typo in java.util.Collection JavaDoc
6655123: Incorrect ref to The Art of Computer Programming in doc for java.util.Random Fix a pair of typos. Reviewed-by: jjg
This commit is contained in:
parent
1606eaa0b9
commit
640ed7d08b
@ -427,7 +427,7 @@ public interface Collection<E> extends Iterable<E> {
|
||||
* contract for the <tt>Object.hashCode</tt> method, programmers should
|
||||
* take note that any class that overrides the <tt>Object.equals</tt>
|
||||
* method must also override the <tt>Object.hashCode</tt> method in order
|
||||
* to satisfy the general contract for the <tt>Object.hashCode</tt>method.
|
||||
* to satisfy the general contract for the <tt>Object.hashCode</tt> method.
|
||||
* In particular, <tt>c1.equals(c2)</tt> implies that
|
||||
* <tt>c1.hashCode()==c2.hashCode()</tt>.
|
||||
*
|
||||
|
@ -32,7 +32,7 @@ import sun.misc.Unsafe;
|
||||
* An instance of this class is used to generate a stream of
|
||||
* pseudorandom numbers. The class uses a 48-bit seed, which is
|
||||
* modified using a linear congruential formula. (See Donald Knuth,
|
||||
* <i>The Art of Computer Programming, Volume 3</i>, Section 3.2.1.)
|
||||
* <i>The Art of Computer Programming, Volume 2</i>, Section 3.2.1.)
|
||||
* <p>
|
||||
* If two instances of {@code Random} are created with the same
|
||||
* seed, and the same sequence of method calls is made for each, they
|
||||
|
Loading…
x
Reference in New Issue
Block a user