changeset 838:7f6969c09075

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
author darcy
date Wed, 14 Jan 2009 16:23:29 -0800
parents 8c1c6e11204b
children 9260d9bd0843
files src/share/classes/java/util/Collection.java src/share/classes/java/util/Random.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/Collection.java	Wed Jan 14 17:17:34 2009 +0000
+++ b/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/src/share/classes/java/util/Random.java	Wed Jan 14 17:17:34 2009 +0000
+++ b/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