lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sh...@apache.org
Subject svn commit: r953986 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/SegmentInfo.java
Date Sat, 12 Jun 2010 10:47:35 GMT
Author: shaie
Date: Sat Jun 12 10:47:35 2010
New Revision: 953986

URL: http://svn.apache.org/viewvc?rev=953986&view=rev
Log:
LUCENE-2497: fix a bug that was introduced in LUCENE-2480

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

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/SegmentInfo.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/SegmentInfo.java?rev=953986&r1=953985&r2=953986&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/SegmentInfo.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/SegmentInfo.java Sat Jun 12 10:47:35
2010
@@ -154,7 +154,8 @@ public final class SegmentInfo {
     }
     if (format > SegmentInfos.FORMAT_4_0) {
       // pre-4.0 indexes write a byte if there is a single norms file
-      assert 1 == input.readByte();
+      byte b = input.readByte();
+      assert 1 == b;
     }
     int numNormGen = input.readInt();
     if (numNormGen == NO) {



Mime
View raw message