Skip to content

Commit

Permalink
Fix not comparing selected output for oredictionificator filters #7757
Browse files Browse the repository at this point in the history
  • Loading branch information
pupnewfster committed Mar 22, 2023
1 parent 62de8d5 commit d14a10c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private void adjustSelected(IntBinaryOperator calculateSelected) {

@Override
public int hashCode() {
return Objects.hash(super.hashCode(), filterLocation);
return Objects.hash(super.hashCode(), filterLocation, selectedOutput);
}

@Override
Expand All @@ -208,7 +208,8 @@ public boolean equals(Object o) {
} else if (o == null || getClass() != o.getClass() || !super.equals(o)) {
return false;
}
return Objects.equals(filterLocation, ((OredictionificatorFilter<?, ?, ?>) o).filterLocation);
OredictionificatorFilter<?, ?, ?> other = (OredictionificatorFilter<?, ?, ?>) o;
return Objects.equals(filterLocation, other.filterLocation) && selectedOutput == other.selectedOutput;
}

public abstract TYPE getResultElement();
Expand Down

0 comments on commit d14a10c

Please sign in to comment.