From 760de925f99c481a84c575d5549d92f2c5f3ba71 Mon Sep 17 00:00:00 2001 From: uogau Date: Mon, 9 Aug 2021 18:10:47 +0200 Subject: [PATCH] added new attributes to equals() and hashCode() --- src/main/java/edu/kit/typicalc/model/parser/ParseError.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/edu/kit/typicalc/model/parser/ParseError.java b/src/main/java/edu/kit/typicalc/model/parser/ParseError.java index d6664c3..22d119a 100644 --- a/src/main/java/edu/kit/typicalc/model/parser/ParseError.java +++ b/src/main/java/edu/kit/typicalc/model/parser/ParseError.java @@ -258,11 +258,11 @@ public final class ParseError { ParseError that = (ParseError) o; return wrongChar == that.wrongChar && correctChar == that.correctChar && position == that.position && 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 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); } }