Skip to content

Commit

Permalink
Merge pull request #22082 from thenx-wei
Browse files Browse the repository at this point in the history
* pr/22082:
  Simplify logic in ErrorPage's equals method

Closes gh-22082
  • Loading branch information
mbhave committed Jun 30, 2020
2 parents 6706073 + c1b9d3c commit 9c732fa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ public boolean equals(Object obj) {
}
if (obj instanceof ErrorPage) {
ErrorPage other = (ErrorPage) obj;
boolean rtn = true;
rtn = rtn && ObjectUtils.nullSafeEquals(getExceptionName(), other.getExceptionName());
boolean rtn = ObjectUtils.nullSafeEquals(getExceptionName(), other.getExceptionName());
rtn = rtn && ObjectUtils.nullSafeEquals(this.path, other.path);
rtn = rtn && this.status == other.status;
return rtn;
Expand Down

0 comments on commit 9c732fa

Please sign in to comment.