fixed compareTo

This commit is contained in:
Jeremy Long
2017-11-12 08:03:09 -05:00
parent 7952df0883
commit 0a344912d3

View File

@@ -224,7 +224,6 @@ public class Identifier implements Serializable, Comparable<Identifier> {
final Identifier other = (Identifier) obj; final Identifier other = (Identifier) obj;
return new EqualsBuilder() return new EqualsBuilder()
.appendSuper(super.equals(obj))
.append(this.type, other.type) .append(this.type, other.type)
.append(this.value, other.value) .append(this.value, other.value)
.isEquals(); .isEquals();
@@ -238,7 +237,6 @@ public class Identifier implements Serializable, Comparable<Identifier> {
@Override @Override
public int hashCode() { public int hashCode() {
return new HashCodeBuilder(5, 49) return new HashCodeBuilder(5, 49)
.appendSuper(super.hashCode())
.append(type) .append(type)
.append(value) .append(value)
.toHashCode(); .toHashCode();
@@ -268,7 +266,7 @@ public class Identifier implements Serializable, Comparable<Identifier> {
} }
return new CompareToBuilder() return new CompareToBuilder()
.append(this.type, o.type) .append(this.type, o.type)
.append(this.value, this.value) .append(this.value, o.value)
.toComparison(); .toComparison();
} }
} }