lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scottga...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index Term.java
Date Fri, 15 Feb 2002 13:13:19 GMT
scottganyo    02/02/15 05:13:19

  Modified:    src/java/org/apache/lucene/index Term.java
  Log:
  field must be interned during serialization read process
  
  Revision  Changes    Path
  1.3       +7 -0      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Term.java	5 Feb 2002 18:00:18 -0000	1.2
  +++ Term.java	15 Feb 2002 13:13:19 -0000	1.3
  @@ -119,4 +119,11 @@
     public final String toString() {
       return "Term<" + field + ":" + text + ">";
     }
  +  
  +  private void readObject(java.io.ObjectInputStream in) 
  +    throws java.io.IOException, ClassNotFoundException
  +  {
  +      in.defaultReadObject();
  +      field = field.intern();
  +  }
   }
  
  
  

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


Mime
View raw message