Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
25ddde7e
Commit
25ddde7e
authored
Feb 09, 2017
by
Björn Richerzhagen
Browse files
Prevent duplicate analyzer registrations
parent
c036c435
Changes
1
Show whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/common/DefaultMonitor.java
View file @
25ddde7e
...
...
@@ -85,8 +85,10 @@ public class DefaultMonitor implements MonitorComponent, EventHandler,
@Override
public
<
A
extends
Analyzer
>
void
registerAnalyzer
(
A
analyzer
)
{
if
(!
analyzers
.
contains
(
analyzer
))
{
analyzers
.
add
(
analyzer
);
}
}
@Override
public
void
log
(
Class
<?>
subject
,
Level
level
,
String
msg
,
Object
...
data
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment