You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2012/08/13 14:58:39 UTC

svn commit: r1372408 - /lucene/dev/branches/pforcodec_3892/lucene/core/src/java/org/apache/lucene/codecs/block/ForUtil.java

Author: jpountz
Date: Mon Aug 13 12:58:38 2012
New Revision: 1372408

URL: http://svn.apache.org/viewvc?rev=1372408&view=rev
Log:
LUCENE-3892: Fix variable name.

Modified:
    lucene/dev/branches/pforcodec_3892/lucene/core/src/java/org/apache/lucene/codecs/block/ForUtil.java

Modified: lucene/dev/branches/pforcodec_3892/lucene/core/src/java/org/apache/lucene/codecs/block/ForUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/pforcodec_3892/lucene/core/src/java/org/apache/lucene/codecs/block/ForUtil.java?rev=1372408&r1=1372407&r2=1372408&view=diff
==============================================================================
--- lucene/dev/branches/pforcodec_3892/lucene/core/src/java/org/apache/lucene/codecs/block/ForUtil.java (original)
+++ lucene/dev/branches/pforcodec_3892/lucene/core/src/java/org/apache/lucene/codecs/block/ForUtil.java Mon Aug 13 12:58:38 2012
@@ -55,7 +55,7 @@ final class ForUtil {
    */
   static final int MAX_DATA_SIZE;
   static {
-    int minDataSize = 0;
+    int maxDataSize = 0;
     for (PackedInts.Format format : PackedInts.Format.values()) {
       for (int bpv = 1; bpv <= 32; ++bpv) {
         if (!format.isSupported(bpv)) {
@@ -63,10 +63,10 @@ final class ForUtil {
         }
         final PackedInts.Decoder decoder = PackedInts.getDecoder(format, PACKED_INTS_VERSION, bpv);
         final int iterations = (int) Math.ceil((float) BLOCK_SIZE / decoder.valueCount());
-        minDataSize = Math.max(minDataSize, iterations * decoder.valueCount());
+        maxDataSize = Math.max(maxDataSize, iterations * decoder.valueCount());
       }
     }
-    MAX_DATA_SIZE = minDataSize;
+    MAX_DATA_SIZE = maxDataSize;
   }
 
   /**