aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-03-09 14:59:45 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-03-09 15:42:12 +0400
commit0ba2f0dad4a5fb4c80321fd80afdd13c343ef2c2 (patch)
tree6a7341eafd2f9054dedf35faaef76deb92aa335c /sonar-plugin-api
parent50859eab4bac6fa4cfd2b72fd327addb3ade1bb7 (diff)
downloadsonarqube-0ba2f0dad4a5fb4c80321fd80afdd13c343ef2c2.tar.gz
sonarqube-0ba2f0dad4a5fb4c80321fd80afdd13c343ef2c2.zip
Fix MeasuresFilters
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java
index 44f452d0293..53659e77c5d 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java
@@ -138,6 +138,7 @@ public final class MeasuresFilters {
private boolean apply(Measure measure) {
return measure instanceof RuleMeasure
&& metric.equals(measure.getMetric())
+ && measure.getPersonId() == null
&& ((RuleMeasure) measure).getRule() != null;
}
@@ -183,6 +184,7 @@ public final class MeasuresFilters {
private boolean apply(Measure measure) {
return measure instanceof RuleMeasure
&& filterOnMetricKey().equals(measure.getMetricKey())
+ && measure.getPersonId() == null
&& doApply((RuleMeasure) measure);
}