6792545: Typo in java.util.Collection JavaDoc
authordarcy
Wed, 14 Jan 2009 16:23:29 -0800
changeset 1818 7847313afae6
parent 1817 2deb4cc4d5dc
child 1819 be60e5317311
6792545: Typo in java.util.Collection JavaDoc 6655123: Incorrect ref to The Art of Computer Programming in doc for java.util.Random Summary: Fix a pair of typos. Reviewed-by: jjg
jdk/src/share/classes/java/util/Collection.java
jdk/src/share/classes/java/util/Random.java
--- a/jdk/src/share/classes/java/util/Collection.java	Wed Jan 14 17:17:34 2009 +0000
+++ b/jdk/src/share/classes/java/util/Collection.java	Wed Jan 14 16:23:29 2009 -0800
@@ -427,7 +427,7 @@
      * 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>.
      *
--- a/jdk/src/share/classes/java/util/Random.java	Wed Jan 14 17:17:34 2009 +0000
+++ b/jdk/src/share/classes/java/util/Random.java	Wed Jan 14 16:23:29 2009 -0800
@@ -32,7 +32,7 @@
  * 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