lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r806530 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TypeAttributeImpl.java
Date Fri, 21 Aug 2009 12:43:21 GMT
Author: uschindler
Date: Fri Aug 21 12:43:21 2009
New Revision: 806530

URL: http://svn.apache.org/viewvc?rev=806530&view=rev
Log:
use the type String and do not clone explicitely (Strings are final and unmodifable)

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TypeAttributeImpl.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TypeAttributeImpl.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TypeAttributeImpl.java?rev=806530&r1=806529&r2=806530&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TypeAttributeImpl.java
(original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TypeAttributeImpl.java
Fri Aug 21 12:43:21 2009
@@ -69,6 +69,6 @@
   
   public void copyTo(AttributeImpl target) {
     TypeAttribute t = (TypeAttribute) target;
-    t.setType(new String(type));
+    t.setType(type);
   }
 }



Mime
View raw message