Added @Override annotations
This commit is contained in:
parent
a9ba4a5b52
commit
9970e452e2
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user