Commit 25ddde7e authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Prevent duplicate analyzer registrations

parent c036c435
......@@ -85,7 +85,9 @@ public class DefaultMonitor implements MonitorComponent, EventHandler,
@Override
public <A extends Analyzer> void registerAnalyzer(A analyzer) {
analyzers.add(analyzer);
if (!analyzers.contains(analyzer)) {
analyzers.add(analyzer);
}
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment