Polish "Use Object.equals() where feasible"

See gh-31916
This commit is contained in:
Stéphane Nicoll
2023-12-28 13:19:27 +01:00
parent 72a9864788
commit adcf236a3d
9 changed files with 12 additions and 21 deletions

View File

@@ -286,10 +286,7 @@ class MappingJackson2MessageConverterTests {
return false;
}
MyBean bean = (MyBean) o;
if (!Objects.equals(foo, bean.foo)) {
return false;
}
return true;
return Objects.equals(this.foo, bean.foo);
}
@Override