You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2011/01/18 23:52:41 UTC

svn commit: r1060608 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SorterTemplate.java

Author: uschindler
Date: Tue Jan 18 22:52:41 2011
New Revision: 1060608

URL: http://svn.apache.org/viewvc?rev=1060608&view=rev
Log:
fix javadoc

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SorterTemplate.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SorterTemplate.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SorterTemplate.java?rev=1060608&r1=1060607&r2=1060608&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SorterTemplate.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/SorterTemplate.java Tue Jan 18 22:52:41 2011
@@ -36,14 +36,14 @@ public abstract class SorterTemplate {
   protected abstract void swap(int i, int j);
   
   /** Compares slots {@code i} and {@code j} of you data.
-   * Should be implemented like <code><em>valueOf(j)</em>.compareTo(<em>valueOf(i)</em>)</code> */
+   * Should be implemented like <code><em>valueOf(i)</em>.compareTo(<em>valueOf(j)</em>)</code> */
   protected abstract int compare(int i, int j);
 
   /** Implement this method, that stores the value of slot {@code i} as pivot value */
   protected abstract void setPivot(int i);
   
   /** Implements the compare function for the previously stored pivot value.
-   * Should be implemented like <code>pivot.compareTo(<em>valueOf(i)</em>)</code> */
+   * Should be implemented like <code>pivot.compareTo(<em>valueOf(j)</em>)</code> */
   protected abstract int comparePivot(int j);
   
   /** Sorts via stable in-place InsertionSort algorithm