From 94f2adedb73247668bd0b1d36d57d37ff78a0416 Mon Sep 17 00:00:00 2001 From: Sriluharshini <63655954+Sriluharshini@users.noreply.github.com> Date: Tue, 13 Feb 2024 20:35:15 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"Issue=20#1:=20Override=20method=20has?= =?UTF-8?q?hCode()=20because=20class=20overrides=20equals()=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../de/dennisguse/opentracks/stats/TrackStatistics.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/java/de/dennisguse/opentracks/stats/TrackStatistics.java b/src/main/java/de/dennisguse/opentracks/stats/TrackStatistics.java index 1b9052440..000feb17d 100644 --- a/src/main/java/de/dennisguse/opentracks/stats/TrackStatistics.java +++ b/src/main/java/de/dennisguse/opentracks/stats/TrackStatistics.java @@ -383,14 +383,6 @@ public boolean equals(Object o) { return toString().equals(o.toString()); } - @Override - public int hashCode() { - final int primeNumber = 31; - int result = 1; - result = result * primeNumber + (startTime == null ? 0 : startTime.hashCode()); - return result; - } - @NonNull @Override public String toString() {