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:
Chris M. Hostetter 2006-05-18 07:56:37 +00:00
parent a1460c87b8
commit 0c9ec9edf7
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;