From 955986d836d208de4e513e91573c424e420b30e6 Mon Sep 17 00:00:00 2001 From: Stefan Vodita Date: Tue, 10 Sep 2024 20:59:41 +0000 Subject: [PATCH] Remove redundant initialisation in DynamicRangeUtil --- .../java/org/apache/lucene/facet/range/DynamicRangeUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/facet/src/java/org/apache/lucene/facet/range/DynamicRangeUtil.java b/lucene/facet/src/java/org/apache/lucene/facet/range/DynamicRangeUtil.java index 9d55b64eb55..700f3b75b00 100644 --- a/lucene/facet/src/java/org/apache/lucene/facet/range/DynamicRangeUtil.java +++ b/lucene/facet/src/java/org/apache/lucene/facet/range/DynamicRangeUtil.java @@ -179,8 +179,8 @@ public final class DynamicRangeUtil { private static final class SegmentOutput { private final long[] values; private final long[] weights; - private long segmentTotalWeight = 0; - private int segmentIdx = 0; + private long segmentTotalWeight; + private int segmentIdx; public SegmentOutput(int hitsLength) { this.values = new long[hitsLength];