mirror of https://github.com/apache/lucene.git
LUCENE-6467: Simplify Query.equals.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1707685 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
55befa558e
commit
9abfb321e1
|
@ -238,6 +238,8 @@ Other
|
||||||
reflection on Java's runtime classes is very restricted.
|
reflection on Java's runtime classes is very restricted.
|
||||||
(Robert Muir, Uwe Schindler)
|
(Robert Muir, Uwe Schindler)
|
||||||
|
|
||||||
|
* LUCENE-6467: Simplify Query.equals. (Paul Elschot via Adrien Grand)
|
||||||
|
|
||||||
Build
|
Build
|
||||||
|
|
||||||
* LUCENE-6732: Improve checker for invalid source patterns to also
|
* LUCENE-6732: Improve checker for invalid source patterns to also
|
||||||
|
|
|
@ -81,12 +81,8 @@ public abstract class Query {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (this == obj)
|
|
||||||
return true;
|
|
||||||
if (obj == null)
|
if (obj == null)
|
||||||
return false;
|
return false;
|
||||||
if (getClass() != obj.getClass())
|
return getClass() == obj.getClass();
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue