You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by vo...@apache.org on 2024/09/10 21:08:08 UTC

(lucene) branch main updated: Remove redundant initialisation in DynamicRangeUtil

This is an automated email from the ASF dual-hosted git repository.

voditas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new 955986d836d Remove redundant initialisation in DynamicRangeUtil
955986d836d is described below

commit 955986d836d208de4e513e91573c424e420b30e6
Author: Stefan Vodita <st...@gmail.com>
AuthorDate: Tue Sep 10 20:59:41 2024 +0000

    Remove redundant initialisation in DynamicRangeUtil
---
 .../src/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];