From 59d358e68fba74f107564fa6cd24d2cb60abde83 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Fri, 21 Aug 2009 12:43:21 +0000 Subject: [PATCH] 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 --- .../lucene/analysis/tokenattributes/TypeAttributeImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/lucene/analysis/tokenattributes/TypeAttributeImpl.java b/src/java/org/apache/lucene/analysis/tokenattributes/TypeAttributeImpl.java index 95d754994b4..d0d3540b6df 100644 --- a/src/java/org/apache/lucene/analysis/tokenattributes/TypeAttributeImpl.java +++ b/src/java/org/apache/lucene/analysis/tokenattributes/TypeAttributeImpl.java @@ -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); } }