HHH-13760 Code formatting changes & suggested logic simplification
This commit is contained in:
parent
92bd6f89dd
commit
d1b32d2b65
|
@ -35,18 +35,18 @@ public abstract class BaseDomainEntityVersion extends BaseDomainEntityMetadata {
|
|||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
if ( this == o ) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
if ( o == null || getClass() != o.getClass() ) {
|
||||
return false;
|
||||
}
|
||||
BaseDomainEntityVersion that = (BaseDomainEntityVersion) o;
|
||||
return Objects.equals(getId(), that.getId()) && version == that.version;
|
||||
return Objects.equals( getId(), that.getId() ) && version == that.version;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(getId(), version);
|
||||
return Objects.hash( getId(), version );
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue