Polishing

This commit is contained in:
Juergen Hoeller
2023-07-19 01:25:20 +02:00
parent 2f33e77ab4
commit c64a322e19
9 changed files with 23 additions and 21 deletions

View File

@@ -559,11 +559,10 @@ public class CachingConnectionFactory extends SingleConnectionFactory {
}
@Override
public boolean equals(@Nullable Object obj) {
public boolean equals(@Nullable Object other) {
// Effectively checking object equality as well as toString equality.
// On WebSphere MQ, Destination objects do not implement equals...
return (this == obj || (obj instanceof DestinationCacheKey otherKey &&
destinationEquals(otherKey)));
return (this == other || (other instanceof DestinationCacheKey that && destinationEquals(that)));
}
@Override