aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-15 11:27:22 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-15 11:27:22 +0200
commitced054000f8af132c9a64acf861c3357211db525 (patch)
treea9258945b3b3b5a890075d8d9012f469ddcfa686 /sonar-core
parent95508af0e7439326967f6d0d412ce9f72ff8cd29 (diff)
downloadsonarqube-ced054000f8af132c9a64acf861c3357211db525.tar.gz
sonarqube-ced054000f8af132c9a64acf861c3357211db525.zip
Add missing annotations
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/metric/SensorMetrics.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/metric/SensorMetrics.java b/sonar-core/src/main/java/org/sonar/core/metric/SensorMetrics.java
index 52f17def834..d4f311fd5d7 100644
--- a/sonar-core/src/main/java/org/sonar/core/metric/SensorMetrics.java
+++ b/sonar-core/src/main/java/org/sonar/core/metric/SensorMetrics.java
@@ -28,8 +28,10 @@ import java.util.Arrays;
import java.util.List;
import java.util.Set;
import javax.annotation.Nullable;
+import org.sonar.api.batch.BatchSide;
import org.sonar.api.measures.Metric;
import org.sonar.api.measures.Metrics;
+import org.sonar.api.server.ServerSide;
import static org.sonar.api.measures.CoreMetrics.ACCESSORS;
import static org.sonar.api.measures.CoreMetrics.CLASSES;
@@ -90,6 +92,8 @@ import static org.sonar.api.measures.CoreMetrics.UNCOVERED_LINES;
* <p/>
* The batch should not send other metrics, and the Compute Engine should not allow other metrics from the batch report.
*/
+@ServerSide
+@BatchSide
public class SensorMetrics {
private static final Set<Metric> ALLOWED_CORE_METRICS = ImmutableSet.<Metric>of(