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:
Uwe Schindler 2009-11-06 04:29:24 +00:00
parent 48d6f2122d
commit fbca69baa0
1 changed files with 2 additions and 3 deletions

View File

@ -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