mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Merge pull request #22240 from izeye
* pr/22240: Polish ErrorPage.equals() Closes gh-22240
This commit is contained in:
commit
14c80c73c8
@ -114,10 +114,8 @@ public class ErrorPage {
|
||||
}
|
||||
if (obj instanceof ErrorPage) {
|
||||
ErrorPage other = (ErrorPage) obj;
|
||||
boolean rtn = ObjectUtils.nullSafeEquals(getExceptionName(), other.getExceptionName());
|
||||
rtn = rtn && ObjectUtils.nullSafeEquals(this.path, other.path);
|
||||
rtn = rtn && this.status == other.status;
|
||||
return rtn;
|
||||
return ObjectUtils.nullSafeEquals(getExceptionName(), other.getExceptionName())
|
||||
&& ObjectUtils.nullSafeEquals(this.path, other.path) && this.status == other.status;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user