Skip to content

Commit 77f469b

Browse files
author
Daniil Zulin
committed
Remove leftover equals implementations
1 parent e464913 commit 77f469b

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

topic/src/main/java/tech/ydb/topic/description/MultipleWindowsStat.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package tech.ydb.topic.description;
22

3-
import java.util.Objects;
4-
53
import tech.ydb.proto.topic.YdbTopic;
64

75
/**
@@ -35,18 +33,4 @@ public long getPerHour() {
3533
public long getPerDay() {
3634
return perDay;
3735
}
38-
39-
@Override
40-
public boolean equals(Object o) {
41-
if (o == null || getClass() != o.getClass()) {
42-
return false;
43-
}
44-
MultipleWindowsStat that = (MultipleWindowsStat) o;
45-
return perMinute == that.perMinute && perHour == that.perHour && perDay == that.perDay;
46-
}
47-
48-
@Override
49-
public int hashCode() {
50-
return Objects.hash(perMinute, perHour, perDay);
51-
}
5236
}

topic/src/main/java/tech/ydb/topic/read/impl/OffsetsRangeImpl.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package tech.ydb.topic.read.impl;
22

3-
import java.util.Objects;
4-
53
import tech.ydb.topic.description.OffsetsRange;
64

75
/**
@@ -38,18 +36,4 @@ public void setStart(long start) {
3836
public void setEnd(long end) {
3937
this.end = end;
4038
}
41-
42-
@Override
43-
public boolean equals(Object o) {
44-
if (o == null || getClass() != o.getClass()) {
45-
return false;
46-
}
47-
OffsetsRangeImpl that = (OffsetsRangeImpl) o;
48-
return start == that.start && end == that.end;
49-
}
50-
51-
@Override
52-
public int hashCode() {
53-
return Objects.hash(start, end);
54-
}
5539
}

0 commit comments

Comments
 (0)