mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-26 02:51:27 +01:00
fixed compareTo
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user