lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r747019 - in /lucene/java/trunk/src/java/org/apache/lucene/search: FieldCache.java SortComparator.java SortComparatorSource.java SortField.java
Date Mon, 23 Feb 2009 13:59:51 GMT
Author: mikemccand
Date: Mon Feb 23 13:59:50 2009
New Revision: 747019

URL: http://svn.apache.org/viewvc?rev=747019&view=rev
Log:
LUCENE-1483: add missing deprecations

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java
    lucene/java/trunk/src/java/org/apache/lucene/search/SortComparator.java
    lucene/java/trunk/src/java/org/apache/lucene/search/SortComparatorSource.java
    lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java?rev=747019&r1=747018&r2=747019&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java Mon Feb 23 13:59:50
2009
@@ -265,6 +265,8 @@
    * @param comparator Used to convert terms into something to sort by.
    * @return Array of sort objects, one for each document.
    * @throws IOException  If any error occurs.
+   * @deprecated Please implement {@link
+   * FieldComparatorSource} directly, instead.
    */
   public Comparable[] getCustom (IndexReader reader, String field, SortComparator comparator)
   throws IOException;

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/SortComparator.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/SortComparator.java?rev=747019&r1=747018&r2=747019&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/SortComparator.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/SortComparator.java Mon Feb 23 13:59:50
2009
@@ -38,6 +38,7 @@
  *
  * @version $Id$
  * @since   1.4
+ * @deprecated Please use {@link FieldComparatorSource} instead.
  */
 public abstract class SortComparator
 implements SortComparatorSource {

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/SortComparatorSource.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/SortComparatorSource.java?rev=747019&r1=747018&r2=747019&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/SortComparatorSource.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/SortComparatorSource.java Mon Feb
23 13:59:50 2009
@@ -29,6 +29,7 @@
  *
  * @version $Id$
  * @since   1.4
+ * @deprecated Please use {@link FieldComparatorSource} instead.
  */
 public interface SortComparatorSource
 extends Serializable {

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java?rev=747019&r1=747018&r2=747019&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java Mon Feb 23 13:59:50
2009
@@ -401,7 +401,7 @@
   }
 
   /** Returns true if <code>o</code> is equal to this.  If a
-   *  {@link SortComparatorSource} or {@link
+   *  {@link SortComparatorSource} (deprecated) or {@link
    *  FieldCache.Parser} was provided, it must properly
    *  implement equals (unless a singleton is always used). */
   public boolean equals(Object o) {
@@ -419,7 +419,7 @@
   }
 
   /** Returns true if <code>o</code> is equal to this.  If a
-   *  {@link SortComparatorSource} or {@link
+   *  {@link SortComparatorSource} (deprecated) or {@link
    *  FieldCache.Parser} was provided, it must properly
    *  implement hashCode (unless a singleton is always
    *  used). */



Mime
View raw message