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
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if ( this == o ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (o == null || getClass() != o.getClass()) {
|
if ( o == null || getClass() != o.getClass() ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
BaseDomainEntityVersion that = (BaseDomainEntityVersion) o;
|
BaseDomainEntityVersion that = (BaseDomainEntityVersion) o;
|
||||||
return Objects.equals(getId(), that.getId()) && version == that.version;
|
return Objects.equals( getId(), that.getId() ) && version == that.version;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(getId(), version);
|
return Objects.hash( getId(), version );
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue