lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1457284 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/SorterTemplate.java
Date Sat, 16 Mar 2013 18:03:14 GMT
Author: uschindler
Date: Sat Mar 16 18:03:13 2013
New Revision: 1457284

URL: http://svn.apache.org/r1457284
Log:
LUCENE-4839: Javadocs links, prevent synthetic accessor method access$0() for merge()

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

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/SorterTemplate.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/SorterTemplate.java?rev=1457284&r1=1457283&r2=1457284&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/SorterTemplate.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/SorterTemplate.java Sat Mar
16 18:03:13 2013
@@ -313,8 +313,8 @@ public abstract class SorterTemplate {
 
   }
 
-  /** Sorts using TimSort, see http://svn.python.org/projects/python/trunk/Objects/listsort.txt
-   *  and http://svn.python.org/projects/python/trunk/Objects/listobject.c.
+  /** Sorts using <a href="http://svn.python.org/projects/python/trunk/Objects/listsort.txt">TimSort</a>,
see 
+   *  also <a href="http://svn.python.org/projects/python/trunk/Objects/listobject.c">source
code</a>.
    *  TimSort is a stable sorting algorithm based on MergeSort but known to
    *  perform extremely well on partially-sorted inputs.
    *  For small collections, falls back to {@link #binarySort(int, int)}. */
@@ -343,7 +343,8 @@ public abstract class SorterTemplate {
     merge(lo, mid, hi, mid - lo, hi - mid);
   }
 
-  private void merge(int lo, int pivot, int hi, int len1, int len2) {
+  // pkg-protected for access from TimSort class
+  void merge(int lo, int pivot, int hi, int len1, int len2) {
     if (len1 == 0 || len2 == 0) {
       return;
     }



Mime
View raw message