(minor) Tidy up EdgeDomain class a bit, no functional difference

This commit is contained in:
Viktor Lofgren 2023-07-31 10:31:29 +02:00
parent 6ff7e9648f
commit 5411950b87

View File

@ -162,22 +162,16 @@ public class EdgeDomain implements Serializable {
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof EdgeDomain)) return false;
final EdgeDomain other = (EdgeDomain) o;
if (!other.canEqual((Object) this)) return false;
if (!(o instanceof EdgeDomain other)) return false;
final String this$subDomain = this.getSubDomain();
final String other$subDomain = other.getSubDomain();
if (!this$subDomain.equalsIgnoreCase(other$subDomain)) return false;
if (!Objects.equals(this$subDomain,other$subDomain)) return false;
final String this$domain = this.getDomain();
final String other$domain = other.getDomain();
if (!this$domain.equalsIgnoreCase(other$domain)) return false;
if (!Objects.equals(this$domain,other$domain)) return false;
return true;
}
protected boolean canEqual(final Object other) {
return other instanceof EdgeDomain;
}
public int hashCode() {
final int PRIME = 59;
int result = 1;