mirror of https://github.com/apache/lucene.git
fix for LUCENE-572
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@407492 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a1460c87b8
commit
0c9ec9edf7
|
@ -56,7 +56,11 @@ Bug fixes
|
|||
|
||||
11. LUCENE-352: Fixed bug in SpanNotQuery that manifested as
|
||||
NullPointerException when "exclude" query was not a SpanTermQuery.
|
||||
(Chris Hostetter)
|
||||
|
||||
12. LUCENE-572: Fixed bug in hashCode, was ignoring exclude clause
|
||||
(Chris Hostetter)
|
||||
|
||||
1.9.1
|
||||
|
||||
Bug fixes
|
||||
|
|
|
@ -172,7 +172,7 @@ public class SpanNotQuery extends SpanQuery {
|
|||
public int hashCode() {
|
||||
int h = include.hashCode();
|
||||
h = (h<<1) | (h >>> 31); // rotate left
|
||||
h ^= include.hashCode();
|
||||
h ^= exclude.hashCode();
|
||||
h = (h<<1) | (h >>> 31); // rotate left
|
||||
h ^= Float.floatToRawIntBits(getBoost());
|
||||
return h;
|
||||
|
|
Loading…
Reference in New Issue