[CommentLinkInfo] Simplify hashCode()

Change-Id: Ibb9fdbb00934a420e900a17a110d4134a0b72d2d
This commit is contained in:
Hector Oswaldo Caballero
2018-01-17 13:22:39 -05:00
parent 4869a5d74a
commit c76d942420

View File

@@ -41,15 +41,6 @@ public class CommentLinkInfo {
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= (this.match == null) ? 0 : this.match.hashCode();
h *= 1000003;
h ^= (this.link == null) ? 0 : this.link.hashCode();
h *= 1000003;
h ^= (this.html == null) ? 0 : this.html.hashCode();
h *= 1000003;
h ^= (this.enabled == null) ? 0 : this.enabled.hashCode();
return h;
return Objects.hash(match, link, html, enabled);
}
}