From e5e3dd7b9aa333be8987776f01a2642faeb5bfa8 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sat, 15 Aug 2015 12:39:12 +0000 Subject: [PATCH] Merged revision(s) 1696047 from lucene/dev/trunk: LUCENE-6740: Reduce warnings emitted by javac #3 git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_5x@1696048 13f79535-47bb-0310-9956-ffa450edef68 --- .../queryparser/flexible/standard/config/NumericConfig.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericConfig.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericConfig.java index 75ea68e3b442..a3160a074556 100644 --- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericConfig.java +++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericConfig.java @@ -18,6 +18,7 @@ */ import java.text.NumberFormat; +import java.util.Objects; import org.apache.lucene.document.FieldType.NumericType; import org.apache.lucene.search.NumericRangeQuery; @@ -156,4 +157,9 @@ public boolean equals(Object obj) { } + @Override + public int hashCode() { + return Objects.hash(precisionStep, type, format); + } + }