diff --git a/src/main/java/kieker/gui/common/domain/AbstractTrace.java b/src/main/java/kieker/gui/common/domain/AbstractTrace.java index 69eed71895df10989852dbb4b387ea2928b97df3..8d6efb1038560cfb2f757bca6459956c1eadd707 100644 --- a/src/main/java/kieker/gui/common/domain/AbstractTrace.java +++ b/src/main/java/kieker/gui/common/domain/AbstractTrace.java @@ -16,7 +16,7 @@ package kieker.gui.common.domain; -public abstract class AbstractTrace { +public abstract class AbstractTrace { // NOPMD (abstract class without abstract methods) private final OperationCall rootOperationCall; diff --git a/src/main/java/kieker/gui/common/domain/OperationCall.java b/src/main/java/kieker/gui/common/domain/OperationCall.java index 70d9689105abb706899d1d1ba2b4f0b0430a8531..9b8f06cffb3d29c762a87bae0ee34f5582842e3e 100644 --- a/src/main/java/kieker/gui/common/domain/OperationCall.java +++ b/src/main/java/kieker/gui/common/domain/OperationCall.java @@ -21,7 +21,7 @@ import java.util.EnumMap; import java.util.List; import java.util.Map; -public final class OperationCall { +public final class OperationCall { // NOPMD (cyclomatic complexity) private final Map<StatisticType, Object> statistics = new EnumMap<>(StatisticType.class); private final List<OperationCall> children = new ArrayList<>(); diff --git a/src/main/java/kieker/gui/common/model/importer/stages/AggregatedTraceStatisticsDecorator.java b/src/main/java/kieker/gui/common/model/importer/stages/AggregatedTraceStatisticsDecorator.java index bf32b79d56a4c0c86db4902c094a685ddc717e4c..000c601c7d3f85a788cb7e0c96d92bebbf900c62 100644 --- a/src/main/java/kieker/gui/common/model/importer/stages/AggregatedTraceStatisticsDecorator.java +++ b/src/main/java/kieker/gui/common/model/importer/stages/AggregatedTraceStatisticsDecorator.java @@ -47,7 +47,7 @@ public final class AggregatedTraceStatisticsDecorator extends AbstractStage<Aggr } } - private final class TraceDurationVisitor { + private static final class TraceDurationVisitor { private final List<List<Long>> durationsPerEdge = new ArrayList<>(); private int edgeIndex; diff --git a/src/main/java/kieker/gui/common/model/importer/stages/TraceAggregator.java b/src/main/java/kieker/gui/common/model/importer/stages/TraceAggregator.java index 253cfe85867fb78336af5d6c3e458ac5695ca0d6..f0b442b615388c907b7bf93b7508ba2314a27726 100644 --- a/src/main/java/kieker/gui/common/model/importer/stages/TraceAggregator.java +++ b/src/main/java/kieker/gui/common/model/importer/stages/TraceAggregator.java @@ -43,7 +43,7 @@ public final class TraceAggregator extends AbstractStage<Trace, AggregatedTrace> } @Override - public void onTerminating() throws Exception { + public void onTerminating() throws Exception { // NOPMD (the throws clause is forced by the framework) for (final List<Trace> aggregationList : this.aggregationMap.values()) { final AggregatedTrace aggregatedTrace = new AggregatedTrace(aggregationList); super.send(aggregatedTrace); diff --git a/src/main/java/kieker/gui/subview/traces/View.java b/src/main/java/kieker/gui/subview/traces/View.java index efa96f78411dfc07568779789697390c4dedf7cc..225450a29f3e17440cc5ad9b8020b9d20c0f7ab9 100644 --- a/src/main/java/kieker/gui/subview/traces/View.java +++ b/src/main/java/kieker/gui/subview/traces/View.java @@ -14,7 +14,7 @@ * limitations under the License. ***************************************************************************/ -package kieker.gui.subview.traces; +package kieker.gui.subview.traces; // NOPMD (to many imports) import java.util.List; import java.util.Observable; @@ -328,7 +328,7 @@ public final class View implements Observer, ISubView { } final String duration = (Long.toString(operationCall.getDuration()) + " " + View.this.model.getShortTimeUnit()).trim(); item.setText(new String[] { operationCall.getContainer(), componentName, operationString, duration, - String.format("%.1f%%", (float) operationCall.getStatistic(StatisticType.PERCENT)), traceID }); + String.format("%.1f%%", operationCall.getStatistic(StatisticType.PERCENT)), traceID }); if (operationCall.isFailed()) { final Color colorRed = Display.getCurrent().getSystemColor(SWT.COLOR_RED);