1
0
mirror of synced 2026-08-04 17:27:13 +00:00

Use consistent equals/hashCode/toString order

Ensure that `equals` `hashCode` and `toString` methods always appear in
the same order. This aligns with the style used in Spring Framework.

Issue gh-8945
This commit is contained in:
Phillip Webb
2020-07-29 20:03:19 -07:00
committed by Rob Winch
parent 612fb22a7f
commit ec6a4cb3f0
12 changed files with 95 additions and 111 deletions
@@ -143,13 +143,13 @@ final class SecurityMockMvcConfigurer extends MockMvcConfigurerAdapter {
}
@Override
public int hashCode() {
return getDelegate().hashCode();
public boolean equals(Object obj) {
return getDelegate().equals(obj);
}
@Override
public boolean equals(Object obj) {
return getDelegate().equals(obj);
public int hashCode() {
return getDelegate().hashCode();
}
@Override