From f94572c1fec30510eba3677b8f532f45e3a68431 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Fri, 13 May 2022 22:13:50 +0200 Subject: [PATCH] Fixed small logger error --- .../ch/zhaw/projekt2/turnierverwaltung/FactoryDecorator.java | 2 +- app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Game.java | 2 +- .../main/java/ch/zhaw/projekt2/turnierverwaltung/Person.java | 2 +- app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Place.java | 2 +- .../main/java/ch/zhaw/projekt2/turnierverwaltung/Player.java | 2 +- app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Team.java | 2 +- .../java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FactoryDecorator.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FactoryDecorator.java index df9d18a..bcb7b5f 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FactoryDecorator.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FactoryDecorator.java @@ -23,7 +23,7 @@ public class FactoryDecorator implements IsObservable { private Pane pane; private final List listener = new ArrayList<>(); - private static final Logger logger = Logger.getLogger(FileIO.class.getCanonicalName()); + private static final Logger logger = Logger.getLogger(FactoryDecorator.class.getCanonicalName()); /** * Setup of Factory Decorator with needed classes diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Game.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Game.java index 34d1df5..ec30a15 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Game.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Game.java @@ -13,7 +13,7 @@ public class Game implements Serializable { private Place place; private Game previousGame1, previousGame2; - private static final Logger logger = Logger.getLogger(FileIO.class.getCanonicalName()); + private static final Logger logger = Logger.getLogger(Game.class.getCanonicalName()); /** * Constructor to initialize a new game. diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Person.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Person.java index f7df958..71e5d3a 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Person.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Person.java @@ -14,7 +14,7 @@ public class Person implements Serializable { private String firstName; private String phoneNumber; - private static final Logger logger = Logger.getLogger(FileIO.class.getCanonicalName()); + private static final Logger logger = Logger.getLogger(Person.class.getCanonicalName()); /** diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Place.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Place.java index a85fb5b..ea0e613 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Place.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Place.java @@ -10,7 +10,7 @@ public class Place implements Serializable { private final String NAME_MATCHING_REGEX = "[a-zA-Z0-9]{1,20}"; private String name; - private static final Logger logger = Logger.getLogger(FileIO.class.getCanonicalName()); + private static final Logger logger = Logger.getLogger(Place.class.getCanonicalName()); /** * Constructor of a place initializes it and checks if name is in valid format diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Player.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Player.java index 0ca2637..6ecca5b 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Player.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Player.java @@ -12,7 +12,7 @@ public class Player extends Person implements Participant { private LocalDate dateOfBirth; - private static final Logger logger = Logger.getLogger(FileIO.class.getCanonicalName()); + private static final Logger logger = Logger.getLogger(Player.class.getCanonicalName()); /** * Constructor of player initializes a new player setting sever attributes like firstname, name birthdate usw. diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Team.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Team.java index 105562d..4247526 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Team.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Team.java @@ -14,7 +14,7 @@ public class Team implements Participant { private List players; private Person contactPerson; - private static final Logger logger = Logger.getLogger(FileIO.class.getCanonicalName()); + private static final Logger logger = Logger.getLogger(Team.class.getCanonicalName()); /** * Constructor to initiate a team, sets its name diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java index fe371e1..898fa42 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Tournament.java @@ -22,7 +22,7 @@ public class Tournament implements Serializable { private final List places; private List> gameList; - private static final Logger logger = Logger.getLogger(FileIO.class.getCanonicalName()); + private static final Logger logger = Logger.getLogger(Tournament.class.getCanonicalName()); /**