You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by ot...@apache.org on 2004/10/23 02:50:31 UTC

cvs commit: jakarta-lucene/src/java/org/apache/lucene/index Term.java

otis        2004/10/22 17:50:31

  Modified:    src/java/org/apache/lucene/index Term.java
  Log:
  - Fixed compareTo(Object) javadoc
  
  Revision  Changes    Path
  1.7       +6 -6      jakarta-lucene/src/java/org/apache/lucene/index/Term.java
  
  Index: Term.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/Term.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Term.java	29 Mar 2004 22:48:02 -0000	1.6
  +++ Term.java	23 Oct 2004 00:50:31 -0000	1.7
  @@ -27,7 +27,7 @@
   public final class Term implements Comparable, java.io.Serializable {
     String field;
     String text;
  -  
  +
     /** Constructs a Term with the given field and text. */
     public Term(String fld, String txt) {
       this(fld, txt, true);
  @@ -64,9 +64,9 @@
       return compareTo((Term)other);
     }
   
  -  /** Compares two terms, returning an integer which is less than zero iff this
  -    term belongs after the argument, equal zero iff this term is equal to the
  -    argument, and greater than zero iff this term belongs after the argument.
  +  /** Compares two terms, returning a negative integer iff this
  +    term belongs before the argument, zero iff this term is equal to the
  +    argument, and a positive integer iff this term belongs after the argument.
   
       The ordering of terms is first by field, then by text.*/
     public final int compareTo(Term other) {
  @@ -83,8 +83,8 @@
     }
   
     public final String toString() { return field + ":" + text; }
  -  
  -  private void readObject(java.io.ObjectInputStream in) 
  +
  +  private void readObject(java.io.ObjectInputStream in)
       throws java.io.IOException, ClassNotFoundException
     {
         in.defaultReadObject();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org