Skip to content

Commit 5518138

Browse files
committed
devonfw#103: removed duplicate VersionRange.equals
1 parent 64c8454 commit 5518138

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

cli/src/main/java/com/devonfw/tools/ide/version/VersionRange.java

-24
Original file line numberDiff line numberDiff line change
@@ -188,30 +188,6 @@ public boolean equals(Object obj) {
188188

189189
}
190190

191-
@Override
192-
public boolean equals(Object obj) {
193-
194-
if (this == obj)
195-
return true;
196-
197-
if (obj == null || getClass() != obj.getClass())
198-
return false;
199-
200-
VersionRange o = (VersionRange) obj;
201-
202-
if (this.min == null && this.max == null) {
203-
return o.min == null && o.max == null;
204-
}
205-
if (this.min == null) {
206-
return o.min == null && this.max.equals(o.max);
207-
}
208-
if (this.max == null) {
209-
return this.min.equals(o.min) && o.max == null;
210-
}
211-
return this.min.equals(o.min) && this.max.equals(o.max);
212-
213-
}
214-
215191
@Override
216192
@JsonValue
217193
public String toString() {

0 commit comments

Comments
 (0)