diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/ErrorPage.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/ErrorPage.java index b49cee29d5..10d10a86d3 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/ErrorPage.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/ErrorPage.java @@ -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;