7031376: Typos in javadoc of TimSort classes
authordarcy
Fri, 25 Mar 2011 18:47:57 -0700
changeset 9006 49dc728cdd3e
parent 9005 a329d2b300c9
child 9007 05f25362fb76
7031376: Typos in javadoc of TimSort classes Reviewed-by: darcy Contributed-by: jjb@google.com
jdk/src/share/classes/java/util/ComparableTimSort.java
jdk/src/share/classes/java/util/TimSort.java
--- a/jdk/src/share/classes/java/util/ComparableTimSort.java	Fri Mar 25 18:26:19 2011 -0700
+++ b/jdk/src/share/classes/java/util/ComparableTimSort.java	Fri Mar 25 18:47:57 2011 -0700
@@ -241,7 +241,7 @@
              * pivot < all in [left, start), so pivot belongs at left.  Note
              * that if there are elements equal to pivot, left points to the
              * first slot after them -- that's why this sort is stable.
-             * Slide elements over to make room to make room for pivot.
+             * Slide elements over to make room for pivot.
              */
             int n = start - left;  // The number of elements to move
             // Switch is just an optimization for arraycopy in default case
--- a/jdk/src/share/classes/java/util/TimSort.java	Fri Mar 25 18:26:19 2011 -0700
+++ b/jdk/src/share/classes/java/util/TimSort.java	Fri Mar 25 18:47:57 2011 -0700
@@ -274,7 +274,7 @@
              * pivot < all in [left, start), so pivot belongs at left.  Note
              * that if there are elements equal to pivot, left points to the
              * first slot after them -- that's why this sort is stable.
-             * Slide elements over to make room to make room for pivot.
+             * Slide elements over to make room for pivot.
              */
             int n = start - left;  // The number of elements to move
             // Switch is just an optimization for arraycopy in default case