Skip to content

Commit

Permalink
devonfw#103: removed duplicate VersionRange.equals
Browse files Browse the repository at this point in the history
  • Loading branch information
MattesMrzik committed Dec 19, 2023
1 parent 64c8454 commit 5518138
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions cli/src/main/java/com/devonfw/tools/ide/version/VersionRange.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,30 +188,6 @@ public boolean equals(Object obj) {

}

@Override
public boolean equals(Object obj) {

if (this == obj)
return true;

if (obj == null || getClass() != obj.getClass())
return false;

VersionRange o = (VersionRange) obj;

if (this.min == null && this.max == null) {
return o.min == null && o.max == null;
}
if (this.min == null) {
return o.min == null && this.max.equals(o.max);
}
if (this.max == null) {
return this.min.equals(o.min) && o.max == null;
}
return this.min.equals(o.min) && this.max.equals(o.max);

}

@Override
@JsonValue
public String toString() {
Expand Down

0 comments on commit 5518138

Please sign in to comment.