Polish ErrorPage.equals()

See gh-22240
pull/22256/head
Johnny Lim 4 years ago committed by Stephane Nicoll
parent 247fd59422
commit 4ab4c61761

@ -114,10 +114,8 @@ public class ErrorPage {
} }
if (obj instanceof ErrorPage) { if (obj instanceof ErrorPage) {
ErrorPage other = (ErrorPage) obj; ErrorPage other = (ErrorPage) obj;
boolean rtn = ObjectUtils.nullSafeEquals(getExceptionName(), other.getExceptionName()); return ObjectUtils.nullSafeEquals(getExceptionName(), other.getExceptionName())
rtn = rtn && ObjectUtils.nullSafeEquals(this.path, other.path); && ObjectUtils.nullSafeEquals(this.path, other.path) && this.status == other.status;
rtn = rtn && this.status == other.status;
return rtn;
} }
return false; return false;
} }

Loading…
Cancel
Save