lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r807029 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TermAttributeImpl.java
Date Sun, 23 Aug 2009 23:07:04 GMT
Author: uschindler
Date: Sun Aug 23 23:07:04 2009
New Revision: 807029

URL: http://svn.apache.org/viewvc?rev=807029&view=rev
Log:
Fix small initialization bug in TermAttributeImpl.copyTo()

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TermAttributeImpl.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TermAttributeImpl.java?rev=807029&r1=807028&r2=807029&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TermAttributeImpl.java
(original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/TermAttributeImpl.java
Sun Aug 23 23:07:04 2009
@@ -211,6 +211,7 @@
   }
   
   public void copyTo(AttributeImpl target) {
+    initTermBuffer();
     TermAttribute t = (TermAttribute) target;
     t.setTermBuffer(termBuffer, 0, termLength);
   }



Mime
View raw message