From ebdd6a5089a73c8c5537100553348f45dd048dcf Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Mon, 13 Aug 2012 12:58:38 +0000 Subject: [PATCH] LUCENE-3892: Fix variable name. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/pforcodec_3892@1372408 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/codecs/block/ForUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/codecs/block/ForUtil.java b/lucene/core/src/java/org/apache/lucene/codecs/block/ForUtil.java index 478c14067c7..66c214bae5c 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/block/ForUtil.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/block/ForUtil.java @@ -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; } /**