You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by iv...@apache.org on 2021/12/03 06:24:26 UTC

[lucene] branch main updated: LUCENE-10279: add entry in CHANGES.txt and make RangeClause final (#507)

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

ivera 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 ec7a79e  LUCENE-10279: add entry in CHANGES.txt and make RangeClause final (#507)
ec7a79e is described below

commit ec7a79eb569c401e4a74bbc07bfb8605fd1dd45f
Author: Ignacio Vera <iv...@apache.org>
AuthorDate: Fri Dec 3 07:23:31 2021 +0100

    LUCENE-10279: add entry in CHANGES.txt and make RangeClause final (#507)
---
 lucene/CHANGES.txt                                                     | 3 ++-
 .../src/java/org/apache/lucene/sandbox/search/MultiRangeQuery.java     | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 54e09da..aa5f7ee 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -84,7 +84,8 @@ Optimizations
 
 Bug Fixes
 ---------------------
-(No changes)
+
+* LUCENE-10279: Fix equals in MultiRangeQuery. (Ignacio Vera)
 
 Other
 ---------------------
diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/MultiRangeQuery.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/MultiRangeQuery.java
index 3d36420..a1528b0 100644
--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/MultiRangeQuery.java
+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/MultiRangeQuery.java
@@ -48,7 +48,7 @@ import org.apache.lucene.util.DocIdSetBuilder;
  */
 public abstract class MultiRangeQuery extends Query {
   /** Representation of a single clause in a MultiRangeQuery */
-  public static class RangeClause {
+  public static final class RangeClause {
     byte[] lowerValue;
     byte[] upperValue;