From 6cf5d70d4599e8bd76a38b7cd30cbdec5ada5dfd Mon Sep 17 00:00:00 2001 From: Nelson Tavares de Sousa <ntd@informatik.uni-kiel.de> Date: Thu, 11 Dec 2014 14:06:24 +0100 Subject: [PATCH] modded some little things --- src/main/java/teetime/framework/Stage.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/teetime/framework/Stage.java b/src/main/java/teetime/framework/Stage.java index 7e8bbef4..04530428 100644 --- a/src/main/java/teetime/framework/Stage.java +++ b/src/main/java/teetime/framework/Stage.java @@ -2,6 +2,7 @@ package teetime.framework; import java.util.HashMap; import java.util.List; +import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -12,7 +13,7 @@ import teetime.framework.validation.InvalidPortConnection; public abstract class Stage { private final String id; - private static HashMap<String, Integer> instancesCounter = new HashMap<String, Integer>(); + private final static Map<String, Integer> instancesCounter = new HashMap<String, Integer>(); /** * A unique logger instance per stage instance */ @@ -20,8 +21,7 @@ public abstract class Stage { protected Stage() { this.id = this.nameInstance(); - // this.id = UUID.randomUUID().toString(); // the id should only be represented by a UUID, not additionally by the class name - this.logger = LoggerFactory.getLogger(this.getClass().getName() + "(" + this.id + ")"); + this.logger = LoggerFactory.getLogger(this.getClass().getName() + "-" + this.id); } public String getId() { -- GitLab