HHH-13760 Code formatting changes & suggested logic simplification

This commit is contained in:
Chris Cranford 2020-01-15 14:33:06 -05:00 committed by Andrea Boriero
parent 92bd6f89dd
commit d1b32d2b65
1 changed files with 4 additions and 4 deletions

View File

@ -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 );
}
}