mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 18:30:42 +00:00
added new attributes to equals() and hashCode()
This commit is contained in:
parent
9797d13041
commit
760de925f9
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user