Skip to content
Snippets Groups Projects
Commit 58ee1397 authored by Rodrigo Queiro's avatar Rodrigo Queiro
Browse files

Use Arrays.hashCode() instead of Object.hashCode()

parent 304e5219
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ public class BooleanArrayField extends Field {
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((value == null) ? 0 : value.hashCode());
result = prime * result + ((value == null) ? 0 : Arrays.hashCode(value));
return result;
}
......
......@@ -94,7 +94,7 @@ public class ByteArrayField extends Field {
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((value == null) ? 0 : value.hashCode());
result = prime * result + ((value == null) ? 0 : Arrays.hashCode(value));
return result;
}
......
......@@ -94,7 +94,7 @@ public class DoubleArrayField extends Field {
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((value == null) ? 0 : value.hashCode());
result = prime * result + ((value == null) ? 0 : Arrays.hashCode(value));
return result;
}
......
......@@ -94,7 +94,7 @@ public class FloatArrayField extends Field {
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((value == null) ? 0 : value.hashCode());
result = prime * result + ((value == null) ? 0 : Arrays.hashCode(value));
return result;
}
......
......@@ -94,7 +94,7 @@ public class IntegerArrayField extends Field {
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((value == null) ? 0 : value.hashCode());
result = prime * result + ((value == null) ? 0 : Arrays.hashCode(value));
return result;
}
......
......@@ -96,7 +96,7 @@ public class LongArrayField extends Field {
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((value == null) ? 0 : value.hashCode());
result = prime * result + ((value == null) ? 0 : Arrays.hashCode(value));
return result;
}
......
......@@ -94,7 +94,7 @@ public class ShortArrayField extends Field {
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((value == null) ? 0 : value.hashCode());
result = prime * result + ((value == null) ? 0 : Arrays.hashCode(value));
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment