From e351352a29b5fa4139bff05759fd0a2ec214a576 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 6 Aug 2024 18:48:35 +0200 Subject: [PATCH] Update CC --- src/de/steamwar/sql/EventFight.java | 2 +- src/de/steamwar/sql/Referee.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/de/steamwar/sql/EventFight.java b/src/de/steamwar/sql/EventFight.java index 53e7757..55991ee 100644 --- a/src/de/steamwar/sql/EventFight.java +++ b/src/de/steamwar/sql/EventFight.java @@ -126,7 +126,7 @@ public class EventFight { } @Override - public int hashCode(){ + public int hashCode() { return fightID; } diff --git a/src/de/steamwar/sql/Referee.java b/src/de/steamwar/sql/Referee.java index d6b1a4f..8cd7e75 100644 --- a/src/de/steamwar/sql/Referee.java +++ b/src/de/steamwar/sql/Referee.java @@ -44,8 +44,6 @@ public class Referee { delete.update(eventID, userID); } - private static final SelectStatement byEvent = table.selectFields("eventID"); - public static Set get(int eventID) { return byEvent.listSelect(eventID).stream().map(referee -> referee.userID).collect(Collectors.toSet()); }