Just a small patch... the infoStream is calling print() not println() and this screws up output a big... the debug message is actually kind of nice:

--

Please reply using PGP.

http://peerfear.org/pubkey.asc NewsMonster - http://www.newsmonster.org/
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster

--- IndexWriter.orig    2004-03-09 15:20:01.489862371 -0800
+++ IndexWriter.java    2004-03-09 15:20:10.644342341 -0800
@@ -419,7 +419,7 @@
     for (int i = minSegment; i < segmentInfos.size(); i++) {
       SegmentInfo si = segmentInfos.info(i);
       if (infoStream != null)
-       infoStream.print(" " + si.name + " (" + si.docCount + " docs)");
+       infoStream.println(" " + si.name + " (" + si.docCount + " docs)");
       IndexReader reader = new SegmentReader(si);
       merger.add(reader);
       if ((reader.directory()==this.directory) || // if we own the directory
begin:vcard
fn:Kevin Burton
n:Burton;Kevin
email;internet:[EMAIL PROTECTED]
x-mozilla-html:TRUE
version:2.1
end:vcard

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to