mirror of https://github.com/apache/lucene.git
use the type String and do not clone explicitely (Strings are final and unmodifable)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@806530 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf8689ba22
commit
59d358e68f
|
@ -69,6 +69,6 @@ public class TypeAttributeImpl extends AttributeImpl implements TypeAttribute, C
|
|||
|
||||
public void copyTo(AttributeImpl target) {
|
||||
TypeAttribute t = (TypeAttribute) target;
|
||||
t.setType(new String(type));
|
||||
t.setType(type);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue