Create proper hashCode() for ORecordNotFoundException
@@ -22,6 +22,8 @@ package com.orientechnologies.orient.core.exception;
import com.orientechnologies.common.exception.OHighLevelException;
import com.orientechnologies.orient.core.id.ORID;
+import java.util.Objects;
+
public class ORecordNotFoundException extends OCoreException implements OHighLevelException {
private static final long serialVersionUID = -265573123216968L;
@@ -54,6 +56,11 @@ public class ORecordNotFoundException extends OCoreException implements OHighLev
return rid != null ? rid.equals(((ORecordNotFoundException) obj).rid) : ((ORecordNotFoundException) obj).rid.equals(rid);
}
+ @Override
+ public int hashCode() {
+ return Objects.hash(rid);
+ }
+
public ORID getRid() {
return rid;
}
