Apache Lucene open-source search software
LUCENE-6740: Reduce warnings emitted by javac #3
Uwe Schindler16f3f8e1b50a
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.javaindex 75ea68e3b44..a3160a07455 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 @@ package org.apache.lucene.queryparser.flexible.standard.config;*/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 class NumericConfig {}+ @Override+ public int hashCode() {+ return Objects.hash(precisionStep, type, format);+ }+}