lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1196252 - /lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/SegmentInfo.java
Date Tue, 01 Nov 2011 20:12:12 GMT
Author: rmuir
Date: Tue Nov  1 20:12:11 2011
New Revision: 1196252

URL: http://svn.apache.org/viewvc?rev=1196252&view=rev
Log:
LUCENE-3490: remove TODO, replace with note

Modified:
    lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/SegmentInfo.java

Modified: lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/SegmentInfo.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/SegmentInfo.java?rev=1196252&r1=1196251&r2=1196252&view=diff
==============================================================================
--- lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/SegmentInfo.java
(original)
+++ lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/SegmentInfo.java
Tue Nov  1 20:12:11 2011
@@ -222,10 +222,10 @@ public final class SegmentInfo implement
 
     
     // System.out.println(Thread.currentThread().getName() + ": si.read hasProx=" + hasProx
+ " seg=" + name);
+    // note: if the codec is not available: Codec.forName will throw an exception.
     if (format <= DefaultSegmentInfosWriter.FORMAT_4_0) {
       codec = Codec.forName(input.readString());
     } else {
-      // TODO what todo if preflex is not available in the provider? register it or fail?
       codec = Codec.forName("Lucene3x");
     }
     diagnostics = input.readStringStringMap();



Mime
View raw message