lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r724501 - /lucene/java/trunk/src/java/org/apache/lucene/index/TermVectorOffsetInfo.java
Date Mon, 08 Dec 2008 21:51:40 GMT
Author: gsingers
Date: Mon Dec  8 13:51:39 2008
New Revision: 724501

URL: http://svn.apache.org/viewvc?rev=724501&view=rev
Log:
LUCENE-1462: Make TermVectorOffsetInfo serializable

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/TermVectorOffsetInfo.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/TermVectorOffsetInfo.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/TermVectorOffsetInfo.java?rev=724501&r1=724500&r2=724501&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/TermVectorOffsetInfo.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/TermVectorOffsetInfo.java Mon Dec 
8 13:51:39 2008
@@ -1,5 +1,7 @@
 package org.apache.lucene.index;
 
+import java.io.Serializable;
+
 /**
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -22,11 +24,11 @@
  * offset information.  This offset information is the character offset as set during the
Analysis phase (and thus may not be the actual offset in the
  * original content).
  */
-public class TermVectorOffsetInfo {
+public class TermVectorOffsetInfo implements Serializable {
   /**
    * Convenience declaration when creating a {@link org.apache.lucene.index.TermPositionVector}
that stores only position information.
    */
-  public static final TermVectorOffsetInfo[] EMPTY_OFFSET_INFO = new TermVectorOffsetInfo[0];
+  public transient static final TermVectorOffsetInfo[] EMPTY_OFFSET_INFO = new TermVectorOffsetInfo[0];
   private int startOffset;
   private int endOffset;
 



Mime
View raw message