@SuppressWarnings("RedundantIfStatement") @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ElementCheckFailure that = (ElementCheckFailure) o; if (primaryClassNumber != that.primaryClassNumber) { return false; } if (primaryElementNumber != that.primaryElementNumber) { return false; } if (!type.equals(that.type)) { return false; } if (primaryObject != that.primaryObject && // Some testing objects not reflexive !primaryObject.equals(that.primaryObject)) { return false; } return true; }
@SuppressWarnings("RedundantIfStatement") @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ElementCheckFailure that = (ElementCheckFailure) o; if (primaryClassNumber != that.primaryClassNumber) { return false; } if (primaryElementNumber != that.primaryElementNumber) { return false; } if (!type.equals(that.type)) { return false; } if (primaryObject != that.primaryObject && // Some testing objects not reflexive !primaryObject.equals(that.primaryObject)) { return false; } return true; }
@SuppressWarnings("RedundantIfStatement") @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ElementCheckFailure that = (ElementCheckFailure) o; if (primaryClassNumber != that.primaryClassNumber) { return false; } if (primaryElementNumber != that.primaryElementNumber) { return false; } if (!type.equals(that.type)) { return false; } if (primaryObject != that.primaryObject && // Some testing objects not reflexive !primaryObject.equals(that.primaryObject)) { return false; } return true; }
return false; if (!type.equals(that.type)) { return false;
return false; if (!type.equals(that.type)) { return false;
return false; if (!type.equals(that.type)) { return false;