diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-08-16 14:00:09 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-08-16 14:00:09 +0200 |
commit | 6ed0c6c21ad38ece31a96c9db3e2fdfa0e07eb21 (patch) | |
tree | b7a670c274dff1a01aeafad4f85de37266ae248a /plugins/sonar-design-plugin/src | |
parent | 424cffa7da8a34ab30cf4426cb3ee897ba01c743 (diff) | |
download | sonarqube-6ed0c6c21ad38ece31a96c9db3e2fdfa0e07eb21.tar.gz sonarqube-6ed0c6c21ad38ece31a96c9db3e2fdfa0e07eb21.zip |
Fix some quality flaws
Diffstat (limited to 'plugins/sonar-design-plugin/src')
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/batch/SuspectLcom4DensityDecorator.java b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/batch/SuspectLcom4DensityDecorator.java index 7b0ee4a1949..b722957d1c2 100644 --- a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/batch/SuspectLcom4DensityDecorator.java +++ b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/batch/SuspectLcom4DensityDecorator.java @@ -73,7 +73,7 @@ public class SuspectLcom4DensityDecorator implements Decorator { } if (hasLcom4 && totalFiles > 0) { - context.saveMeasure(CoreMetrics.SUSPECT_LCOM4_DENSITY, (total / totalFiles)); + context.saveMeasure(CoreMetrics.SUSPECT_LCOM4_DENSITY, total / totalFiles); } } diff --git a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/page/client/Dsm.java b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/page/client/Dsm.java index 9539a9c96ce..1dad1fa06c5 100644 --- a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/page/client/Dsm.java +++ b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/page/client/Dsm.java @@ -289,7 +289,7 @@ public class Dsm extends Composite { private Label createNonDiagonalCell(final int row, final int col, int weight) { Label cell; - cell = buildCell(row, col, weight, (col > row ? GRID_CELL_TOP_RIGHT : GRID_CELL_BOTTOM_LEFT)); + cell = buildCell(row, col, weight, col > row ? GRID_CELL_TOP_RIGHT : GRID_CELL_BOTTOM_LEFT); if (weight > 0) { String tooltip = data.get(col).getName() + " -> " + data.get(row).getName() + " (" + weight + "). " + Dictionary.getDictionary("l10n").get("design.cellTooltip"); |