rtn variables in class ErrorPage is always true:

boolean rtn = true; rtn = rtn && ObjectUtils.nullSafeEquals(getExceptionName(), other.getExceptionName());

so it is reduced the following code:

boolean rtn = true; rtn = ObjectUtils.nullSafeEquals(getExceptionName(), other.getExceptionName());

Comment From: mbhave

@thenx-wei Thanks for making your first contribution to Spring Boot. This has now been merged into 2.2.x, 2.3.x and master.