diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-10-10 00:01:22 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-10-10 00:01:23 +0200 |
commit | 736c775bfc2cde38a53e4d43f858d3a3b6728c34 (patch) | |
tree | caee18e0a6007e19e8ee81d64a2b1e8dfe17a847 /sonar-deprecated | |
parent | 7d562d641868532e5edbd6f03fac739eff9bcc90 (diff) | |
download | sonarqube-736c775bfc2cde38a53e4d43f858d3a3b6728c34.tar.gz sonarqube-736c775bfc2cde38a53e4d43f858d3a3b6728c34.zip |
Add missing @Override annotations
Diffstat (limited to 'sonar-deprecated')
5 files changed, 7 insertions, 0 deletions
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/batch/AbstractSourceImporter.java b/sonar-deprecated/src/main/java/org/sonar/api/batch/AbstractSourceImporter.java index 084c505139f..f453c1e6579 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/batch/AbstractSourceImporter.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/batch/AbstractSourceImporter.java @@ -43,10 +43,12 @@ public abstract class AbstractSourceImporter implements Sensor { this.language = language; } + @Override public boolean shouldExecuteOnProject(Project project) { return false; } + @Override public void analyse(Project project, SensorContext context) { // Do not remove for backward compatibility } diff --git a/sonar-deprecated/src/main/java/org/sonar/api/charts/AbstractChart.java b/sonar-deprecated/src/main/java/org/sonar/api/charts/AbstractChart.java index 016ab133322..acbeb318b96 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/charts/AbstractChart.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/charts/AbstractChart.java @@ -56,6 +56,7 @@ public abstract class AbstractChart implements Chart { * @param params the chart parameters * @return the generated chart */ + @Override public BufferedImage generateImage(ChartParameters params) { JFreeChart chart = new JFreeChart(null, TextTitle.DEFAULT_FONT, getPlot(params), hasLegend()); improveChart(chart, params); diff --git a/sonar-deprecated/src/main/java/org/sonar/api/checks/NoSonarFilter.java b/sonar-deprecated/src/main/java/org/sonar/api/checks/NoSonarFilter.java index 05c4bd9bfaf..ad2e60488ff 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/checks/NoSonarFilter.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/checks/NoSonarFilter.java @@ -53,6 +53,7 @@ public class NoSonarFilter implements ViolationFilter { } } + @Override public boolean isIgnored(Violation violation) { boolean ignored = false; if (violation.getResource() != null && violation.getLineId() != null) { diff --git a/sonar-deprecated/src/main/java/org/sonar/api/resources/Java.java b/sonar-deprecated/src/main/java/org/sonar/api/resources/Java.java index f5c5b1a97b2..67b27bb4da8 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/resources/Java.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/resources/Java.java @@ -67,6 +67,7 @@ public class Java extends AbstractLanguage { * * @see AbstractLanguage#getFileSuffixes() */ + @Override public String[] getFileSuffixes() { return SUFFIXES; } diff --git a/sonar-deprecated/src/main/java/org/sonar/api/web/AbstractDashboardWidget.java b/sonar-deprecated/src/main/java/org/sonar/api/web/AbstractDashboardWidget.java index 3937abbabfa..addab4dca69 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/web/AbstractDashboardWidget.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/web/AbstractDashboardWidget.java @@ -26,10 +26,12 @@ package org.sonar.api.web; @Deprecated public abstract class AbstractDashboardWidget extends AbstractRubyTemplate implements RubyRailsWidget { + @Override public String getId() { return getClass().getSimpleName(); } + @Override public String getTitle() { return getClass().getSimpleName(); } |