Consistent equals/hashCode style (and related polishing)

This commit is contained in:
Juergen Hoeller
2023-08-04 02:39:31 +02:00
parent 7e6612a920
commit 18966d048c
56 changed files with 198 additions and 288 deletions

View File

@@ -43,10 +43,9 @@ public class SpringFlushSynchronization implements TransactionSynchronization {
SessionFactoryUtils.flush(this.session, false);
}
@Override
public boolean equals(@Nullable Object obj) {
return (this == obj || (obj instanceof SpringFlushSynchronization that && this.session == that.session));
public boolean equals(@Nullable Object other) {
return (this == other || (other instanceof SpringFlushSynchronization that && this.session == that.session));
}
@Override