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:
Adrien Grand 2015-10-09 10:06:51 +00:00
parent 55befa558e
commit 9abfb321e1
2 changed files with 3 additions and 5 deletions

View File

@ -238,6 +238,8 @@ Other
reflection on Java's runtime classes is very restricted.
(Robert Muir, Uwe Schindler)
* LUCENE-6467: Simplify Query.equals. (Paul Elschot via Adrien Grand)
Build
* LUCENE-6732: Improve checker for invalid source patterns to also

View File

@ -81,12 +81,8 @@ public abstract class Query {
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
return true;
return getClass() == obj.getClass();
}
}