aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-10-10 00:01:22 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-10-10 00:01:23 +0200
commit736c775bfc2cde38a53e4d43f858d3a3b6728c34 (patch)
treecaee18e0a6007e19e8ee81d64a2b1e8dfe17a847 /sonar-deprecated
parent7d562d641868532e5edbd6f03fac739eff9bcc90 (diff)
downloadsonarqube-736c775bfc2cde38a53e4d43f858d3a3b6728c34.tar.gz
sonarqube-736c775bfc2cde38a53e4d43f858d3a3b6728c34.zip
Add missing @Override annotations
Diffstat (limited to 'sonar-deprecated')
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/batch/AbstractSourceImporter.java2
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/charts/AbstractChart.java1
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/checks/NoSonarFilter.java1
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/resources/Java.java1
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/web/AbstractDashboardWidget.java2
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();
}