lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r581355 - /lucene/java/trunk/src/java/org/apache/lucene/index/DocumentsWriter.java
Date Tue, 02 Oct 2007 19:21:29 GMT
Author: mikemccand
Date: Tue Oct  2 12:21:28 2007
New Revision: 581355

URL: http://svn.apache.org/viewvc?rev=581355&view=rev
Log:
LUCENE-1007: woops ... Integer.SIZE is Java 1.5 only

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/DocumentsWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/DocumentsWriter.java?rev=581355&r1=581354&r2=581355&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/DocumentsWriter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/DocumentsWriter.java Tue Oct  2 12:21:28
2007
@@ -2305,7 +2305,7 @@
       bufferedDeleteTerms.put(term, new Num(docCount));
       // This is coarse approximation of actual bytes used:
       numBytesUsed += (term.field().length() + term.text().length()) * BYTES_PER_CHAR
-          + Integer.SIZE/8 + 5 * OBJECT_HEADER_BYTES + 5 * OBJECT_POINTER_BYTES;
+          + 4 + 5 * OBJECT_HEADER_BYTES + 5 * OBJECT_POINTER_BYTES;
       if (ramBufferSize != IndexWriter.DISABLE_AUTO_FLUSH
           && numBytesUsed > ramBufferSize) {
         bufferIsFull = true;



Mime
View raw message