Skip to content

Commit 9d2793e

Browse files
author
May
committed
Simplify code: Incorporate Boolean conditions appropriately
1 parent 1703007 commit 9d2793e

File tree

1 file changed

+1
-2
lines changed
  • spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server

1 file changed

+1
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/ErrorPage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ public boolean equals(Object obj) {
114114
}
115115
if (obj instanceof ErrorPage) {
116116
ErrorPage other = (ErrorPage) obj;
117-
boolean rtn = true;
118-
rtn = ObjectUtils.nullSafeEquals(getExceptionName(), other.getExceptionName());
117+
boolean rtn = ObjectUtils.nullSafeEquals(getExceptionName(), other.getExceptionName());
119118
rtn = rtn && ObjectUtils.nullSafeEquals(this.path, other.path);
120119
rtn = rtn && this.status == other.status;
121120
return rtn;

0 commit comments

Comments
 (0)