mirror of https://github.com/apache/lucene.git
Fix the heavy committing error :(
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@833297 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
48d6f2122d
commit
fbca69baa0
|
@ -106,8 +106,6 @@ implements Serializable {
|
|||
// 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 @@ implements Serializable {
|
|||
// 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
|
||||
|
|
Loading…
Reference in New Issue