1
0
mirror of synced 2026-08-05 17:57:15 +00:00

Fix equals and hashCode alignment

Fixes gh-4588
This commit is contained in:
Rob Winch
2017-09-28 16:56:28 -05:00
parent 646b3e48b3
commit f3828924ff
6 changed files with 69 additions and 0 deletions
@@ -60,6 +60,23 @@ public final class Header {
return this.headerValues;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Header header = (Header) o;
if (!this.headerName.equals(header.headerName)) {
return false;
}
return this.headerValues.equals(header.headerValues);
}
public int hashCode() {
return headerName.hashCode() + headerValues.hashCode();
}