HHH-18122 removed check of the arg type for private classes
This commit is contained in:
parent
2b965f6c65
commit
ebaba54a83
|
@ -225,9 +225,6 @@ public class BoundedConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
|||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (!(o instanceof HashEntry)) {
|
||||
return false;
|
||||
}
|
||||
// HashEntry is internal class, never leaks out of CHM, hence slight optimization
|
||||
if ( this == o ) {
|
||||
return true;
|
||||
|
@ -487,9 +484,6 @@ public class BoundedConcurrentHashMap<K, V> extends AbstractMap<K, V>
|
|||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (!(o instanceof LIRSHashEntry)) {
|
||||
return false;
|
||||
}
|
||||
// HashEntry is internal class, never leaks out of CHM, hence slight optimization
|
||||
if ( this == o ) {
|
||||
return true;
|
||||
|
|
|
@ -840,13 +840,12 @@ public class Table implements Serializable, ContributableDatabaseObject {
|
|||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (!(other instanceof ForeignKeyKey)) {
|
||||
if ( !( other instanceof ForeignKeyKey ) ) {
|
||||
return false;
|
||||
}
|
||||
ForeignKeyKey fkk = (ForeignKeyKey) other;
|
||||
return fkk != null
|
||||
&& Arrays.equals( fkk.columns, columns )
|
||||
&& Arrays.equals( fkk.referencedColumns, referencedColumns );
|
||||
return Arrays.equals( fkk.columns, columns )
|
||||
&& Arrays.equals( fkk.referencedColumns, referencedColumns );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -126,10 +126,6 @@ public class NavigablePath implements DotIdentifierSequence, Serializable {
|
|||
|
||||
@Override
|
||||
public boolean equals(@Nullable Object other) {
|
||||
if (!(other instanceof NavigablePath)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( this == other ) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -642,9 +642,6 @@ public class TypeConfiguration implements SessionFactoryObserver, Serializable {
|
|||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (!(o instanceof ArrayCacheKey)) {
|
||||
return false;
|
||||
}
|
||||
return Arrays.equals( components, ((ArrayCacheKey) o).components );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue