mirror of https://github.com/apache/lucene.git
field must be interned during serialization read process
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149689 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
33a4c8c325
commit
64adb57449
|
@ -119,4 +119,11 @@ public final class Term implements java.io.Serializable {
|
|||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue