diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-07-07 09:51:32 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-07-07 09:51:32 +0200 |
commit | a5c3b151341e3d47172842684fc3e3358f62656d (patch) | |
tree | 1862bc34c4f853275195cc8bc6bc58280212c37d /plugins | |
parent | 7397334a0105081efcb813d5e190222fc811843e (diff) | |
download | sonarqube-a5c3b151341e3d47172842684fc3e3358f62656d.tar.gz sonarqube-a5c3b151341e3d47172842684fc3e3358f62656d.zip |
Fix quality flaws
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/measures/MeasureFilterAsTreemapWidget.java | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/measures/MeasureFilterAsTreemapWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/measures/MeasureFilterAsTreemapWidget.java index 2d21ec1ed4c..f29aa59d992 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/measures/MeasureFilterAsTreemapWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/measures/MeasureFilterAsTreemapWidget.java @@ -20,7 +20,11 @@ package org.sonar.plugins.core.widgets.measures; import org.sonar.api.measures.CoreMetrics; -import org.sonar.api.web.*; +import org.sonar.api.web.WidgetCategory; +import org.sonar.api.web.WidgetProperties; +import org.sonar.api.web.WidgetProperty; +import org.sonar.api.web.WidgetPropertyType; +import org.sonar.api.web.WidgetScope; import org.sonar.plugins.core.widgets.CoreWidget; import org.sonar.plugins.core.widgets.WidgetConstants; @@ -33,23 +37,23 @@ import static org.sonar.api.web.WidgetScope.GLOBAL; optional = false), @WidgetProperty(key = MeasureFilterAsTreemapWidget.CHART_TITLE_PROPERTY, type = WidgetPropertyType.STRING), @WidgetProperty(key = MeasureFilterAsTreemapWidget.SIZE_METRIC_PROPERTY, type = WidgetPropertyType.METRIC, - defaultValue = CoreMetrics.COMPLEXITY_KEY, options = { WidgetConstants.FILTER_OUT_NEW_METRICS }), + defaultValue = CoreMetrics.COMPLEXITY_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}), @WidgetProperty(key = MeasureFilterAsTreemapWidget.COLOR_METRIC_PROPERTY, type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.COVERAGE_KEY, - options = { WidgetConstants.FILTER_OUT_NEW_METRICS, "type:PERCENT,RATING,LEVEL" }), + options = {WidgetConstants.FILTER_OUT_NEW_METRICS, "type:PERCENT,RATING,LEVEL"}), @WidgetProperty(key = MeasureFilterAsTreemapWidget.HEIGHT_PERCENTS_PROPERTY, type = WidgetPropertyType.INTEGER, optional = true, defaultValue = "55", description = "Height in percents of width"), @WidgetProperty(key = MeasureFilterAsTreemapWidget.MAX_ITEMS_PROPERTY, type = WidgetPropertyType.INTEGER, defaultValue = "100") }) public class MeasureFilterAsTreemapWidget extends CoreWidget { - public static final String FILTER_PROPERTY = "filter"; - public static final String SIZE_METRIC_PROPERTY = "sizeMetric"; - public static final String COLOR_METRIC_PROPERTY = "colorMetric"; - public static final String HEIGHT_PERCENTS_PROPERTY = "heightInPercents"; - public static final String CHART_TITLE_PROPERTY = "chartTitle"; - public static final String MAX_ITEMS_PROPERTY = "maxItems"; - public static final String ID = "measure_filter_treemap"; + public static final String FILTER_PROPERTY = "filter"; + public static final String SIZE_METRIC_PROPERTY = "sizeMetric"; + public static final String COLOR_METRIC_PROPERTY = "colorMetric"; + public static final String HEIGHT_PERCENTS_PROPERTY = "heightInPercents"; + public static final String CHART_TITLE_PROPERTY = "chartTitle"; + public static final String MAX_ITEMS_PROPERTY = "maxItems"; + public static final String ID = "measure_filter_treemap"; public MeasureFilterAsTreemapWidget() { super(ID, "Measure Filter as Treemap", "/org/sonar/plugins/core/widgets/measures/measure_filter_treemap.html.erb"); |