Added @Override annotations

This commit is contained in:
nathan 2018-01-11 14:50:38 +01:00
parent a9ba4a5b52
commit 9970e452e2

View File

@ -594,6 +594,7 @@ class DnsRecord implements Cloneable, Comparable, Serializable {
/** /**
* Generates a hash code based on the Record's data. * Generates a hash code based on the Record's data.
*/ */
@Override
public public
int hashCode() { int hashCode() {
byte[] array = toWireCanonical(true); byte[] array = toWireCanonical(true);
@ -612,6 +613,7 @@ class DnsRecord implements Cloneable, Comparable, Serializable {
* *
* @return true if the records are equal, false otherwise. * @return true if the records are equal, false otherwise.
*/ */
@Override
public public
boolean equals(Object arg) { boolean equals(Object arg) {
if (arg == null || !(arg instanceof DnsRecord)) { if (arg == null || !(arg instanceof DnsRecord)) {