Commit 9c732fa2 authored by Madhura Bhave's avatar Madhura Bhave

Merge pull request #22082 from thenx-wei

* pr/22082:
  Simplify logic in ErrorPage's equals method

Closes gh-22082
parents 67060731 c1b9d3c2
......@@ -114,8 +114,7 @@ public class ErrorPage {
}
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment