Logging and docs added in several classes #27 #28 #53

Merged
brandleo merged 13 commits from logging_and_docs into main 2022-05-13 22:54:04 +02:00
7 changed files with 7 additions and 7 deletions
Showing only changes of commit f94572c1fe - Show all commits

View File

@ -23,7 +23,7 @@ public class FactoryDecorator implements IsObservable {
private Pane pane; private Pane pane;
private final List<IsObserver> listener = new ArrayList<>(); private final List<IsObserver> 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 * Setup of Factory Decorator with needed classes

View File

@ -13,7 +13,7 @@ public class Game implements Serializable {
private Place place; private Place place;
private Game previousGame1, previousGame2; 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. * Constructor to initialize a new game.

View File

@ -14,7 +14,7 @@ public class Person implements Serializable {
private String firstName; private String firstName;
private String phoneNumber; private String phoneNumber;
private static final Logger logger = Logger.getLogger(FileIO.class.getCanonicalName()); private static final Logger logger = Logger.getLogger(Person.class.getCanonicalName());
/** /**

View File

@ -10,7 +10,7 @@ public class Place implements Serializable {
private final String NAME_MATCHING_REGEX = "[a-zA-Z0-9]{1,20}"; private final String NAME_MATCHING_REGEX = "[a-zA-Z0-9]{1,20}";
private String name; 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 * Constructor of a place initializes it and checks if name is in valid format

View File

@ -12,7 +12,7 @@ public class Player extends Person implements Participant {
private LocalDate dateOfBirth; 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. * Constructor of player initializes a new player setting sever attributes like firstname, name birthdate usw.

View File

@ -14,7 +14,7 @@ public class Team implements Participant {
private List<Player> players; private List<Player> players;
private Person contactPerson; 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 * Constructor to initiate a team, sets its name

View File

@ -22,7 +22,7 @@ public class Tournament implements Serializable {
private final List<Place> places; private final List<Place> places;
private List<List<Game>> gameList; private List<List<Game>> gameList;
private static final Logger logger = Logger.getLogger(FileIO.class.getCanonicalName()); private static final Logger logger = Logger.getLogger(Tournament.class.getCanonicalName());
/** /**