Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TeeTime-Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nelson Tavares de Sousa
TeeTime-Framework
Commits
9640e66f
Commit
9640e66f
authored
10 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
fixed PMD issues
parent
33813210
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/teetime/framework/Stage.java
+3
-4
3 additions, 4 deletions
src/main/java/teetime/framework/Stage.java
with
3 additions
and
4 deletions
src/main/java/teetime/framework/Stage.java
+
3
−
4
View file @
9640e66f
...
...
@@ -10,14 +10,14 @@ import org.slf4j.LoggerFactory;
import
teetime.framework.signal.ISignal
;
import
teetime.framework.validation.InvalidPortConnection
;
public
abstract
class
Stage
{
public
abstract
class
Stage
{
// NOPMD (should not start with "Abstract"
private
final
String
id
;
private
static
final
Map
<
String
,
Integer
>
INSTANCES_COUNTER
=
new
ConcurrentHashMap
<
String
,
Integer
>();
/**
* A unique logger instance per stage instance
*/
protected
final
Logger
logger
;
protected
final
Logger
logger
;
// NOPMD
protected
Stage
()
{
this
.
id
=
this
.
createId
();
...
...
@@ -35,14 +35,13 @@ public abstract class Stage {
private
String
createId
()
{
int
instances
=
0
;
String
id
;
String
simpleName
=
this
.
getClass
().
getSimpleName
();
if
(
INSTANCES_COUNTER
.
containsKey
(
simpleName
))
{
instances
=
INSTANCES_COUNTER
.
get
(
simpleName
);
}
id
=
simpleName
+
"-"
+
instances
;
String
id
=
simpleName
+
"-"
+
instances
;
INSTANCES_COUNTER
.
put
(
simpleName
,
++
instances
);
return
id
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment