added new attributes to equals() and hashCode()

This commit is contained in:
uogau 2021-08-09 18:10:47 +02:00
parent 9797d13041
commit 760de925f9

View File

@ -258,11 +258,11 @@ public final class ParseError {
ParseError that = (ParseError) o; ParseError that = (ParseError) o;
return wrongChar == that.wrongChar && correctChar == that.correctChar && position == that.position return wrongChar == that.wrongChar && correctChar == that.correctChar && position == that.position
&& causeEnum == that.causeEnum && cause.equals(that.cause) && needed.equals(that.needed) && causeEnum == that.causeEnum && cause.equals(that.cause) && needed.equals(that.needed)
&& expected.equals(that.expected) && term.equals(that.term) && errorType.equals(that.errorType); && expected.equals(that.expected) && additional.equals(that.additional) && term.equals(that.term) && errorType.equals(that.errorType);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(causeEnum, cause, needed, expected, term, wrongChar, correctChar, position, errorType); return Objects.hash(causeEnum, cause, needed, expected, additional, term, wrongChar, correctChar, position, errorType);
} }
} }