lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r919119 - /lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryReader.java
Date Thu, 04 Mar 2010 18:40:37 GMT
Author: mikemccand
Date: Thu Mar  4 18:40:37 2010
New Revision: 919119

URL: http://svn.apache.org/viewvc?rev=919119&view=rev
Log:
add missing space in DirectoryReader.toString

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryReader.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryReader.java?rev=919119&r1=919118&r2=919119&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryReader.java Thu Mar  4 18:40:37
2010
@@ -308,8 +308,11 @@
     }
     buffer.append(getClass().getSimpleName());
     buffer.append('(');
-    for(SegmentReader r : subReaders) {
-      buffer.append(r);
+    for(int i=0;i<subReaders.length;i++) {
+      if (i > 0) {
+        buffer.append(' ');
+      }
+      buffer.append(subReaders[i]);
     }
     buffer.append(')');
     return buffer.toString();



Mime
View raw message