lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r833297 - /lucene/java/trunk/src/java/org/apache/lucene/search/SortField.java
Date Fri, 06 Nov 2009 04:29:24 GMT
Author: uschindler
Date: Fri Nov  6 04:29:24 2009
New Revision: 833297

URL: http://svn.apache.org/viewvc?rev=833297&view=rev
Log:
Fix the heavy committing error :(

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

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=833297&r1=833296&r2=833297&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 Fri Nov  6 04:29:24
2009
@@ -106,8 +106,6 @@
   // Used for CUSTOM sort
   private FieldComparatorSource comparatorSource;
 
-  private boolean useLegacy = false; // remove in Lucene 3.0
-
   /** Creates a sort by terms in the given field with the type of term
    * values explicitly given.
    * @param field  Name of field to sort by.  Can be <code>null</code> if
@@ -357,7 +355,8 @@
   // field must be interned after reading from stream
   private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException
{
     in.defaultReadObject();
-    field = StringHelper.intern(field);
+    if (field != null)
+      field = StringHelper.intern(field);
   }
 
   /** Returns the {@link FieldComparator} to use for



Mime
View raw message