From 5e93294c386edafb6f921d58d3bc42edafc563d1 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 15 Nov 2022 16:35:28 +0100 Subject: [PATCH] Rewrite function for resolving competitor name --- app/src/main/java/ch/nuth/zhaw/exbox/MyCompetitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/ch/nuth/zhaw/exbox/MyCompetitor.java b/app/src/main/java/ch/nuth/zhaw/exbox/MyCompetitor.java index 59b954f..1997b59 100644 --- a/app/src/main/java/ch/nuth/zhaw/exbox/MyCompetitor.java +++ b/app/src/main/java/ch/nuth/zhaw/exbox/MyCompetitor.java @@ -63,7 +63,7 @@ public class MyCompetitor implements Comparable { @Override public int hashCode() { int hashCode = 13; - hashCode += name.hashCode(); + hashCode += getName().hashCode(); hashCode *= 17; return hashCode + rank; }