Use equals() for object equality checks

This commit is contained in:
Tim Donohue
2020-07-27 17:05:56 -05:00
parent 645a1800bb
commit 78f837c052
8 changed files with 19 additions and 19 deletions

View File

@@ -135,12 +135,12 @@ public class Version implements ReloadableEntity<Integer> {
return true;
}
Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(o);
if (getClass() != objClass) {
if (!getClass().equals(objClass)) {
return false;
}
final Version that = (Version) o;
if (this.getID() != that.getID()) {
if (!this.getID().equals(that.getID())) {
return false;
}