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()); }