Skip to content

Commit

Permalink
Fixed warnings identified by IntelliJ code analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
maisonobe committed Mar 21, 2024
1 parent cc610e9 commit 3ad4c50
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public String toString() {
s.append('x');
if (i > 1) {
s.append('^');
s.append(Integer.toString(i));
s.append(i);
}
}
}
Expand Down Expand Up @@ -434,10 +434,7 @@ public boolean equals(Object obj) {
return false;
}
PolynomialFunction other = (PolynomialFunction) obj;
if (!Arrays.equals(coefficients, other.coefficients)) {
return false;
}
return true;
return Arrays.equals(coefficients, other.coefficients);
}

/**
Expand Down

0 comments on commit 3ad4c50

Please sign in to comment.