mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Simplify logic in ErrorPage's equals method
See gh-22082
This commit is contained in:
parent
67060731bc
commit
c1b9d3c226
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user