Polishing
This commit is contained in:
@@ -522,7 +522,8 @@ public class CachingConnectionFactory extends SingleConnectionFactory {
|
||||
public boolean equals(Object other) {
|
||||
// Effectively checking object equality as well as toString equality.
|
||||
// On WebSphere MQ, Destination objects do not implement equals...
|
||||
return (this == other || destinationEquals((DestinationCacheKey) other));
|
||||
return (this == other || (other instanceof DestinationCacheKey &&
|
||||
destinationEquals((DestinationCacheKey) other)));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -590,7 +591,7 @@ public class CachingConnectionFactory extends SingleConnectionFactory {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return 31 * super.hashCode() + ObjectUtils.nullSafeHashCode(this.selector);
|
||||
return (31 * super.hashCode() + ObjectUtils.nullSafeHashCode(this.selector));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user