lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whosc...@apache.org
Subject svn commit: r450725 - /lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java
Date Thu, 28 Sep 2006 07:11:40 GMT
Author: whoschek
Date: Thu Sep 28 00:11:39 2006
New Revision: 450725

URL: http://svn.apache.org/viewvc?view=rev&rev=450725
Log:
fixed array length bug

Modified:
    lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java

Modified: lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java?view=diff&rev=450725&r1=450724&r2=450725
==============================================================================
--- lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java
(original)
+++ lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/PatternAnalyzer.java
Thu Sep 28 00:11:39 2006
@@ -297,7 +297,7 @@
         len += n;
       }
 
-      return new String(output, 0, output.length);
+      return new String(output, 0, len);
     } finally {
       if (input != null) input.close();
     }



Mime
View raw message