lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index Term.java
Date Sat, 23 Oct 2004 00:50:31 GMT
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


Mime
View raw message