diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-03-09 14:59:45 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-03-09 15:42:12 +0400 |
commit | 0ba2f0dad4a5fb4c80321fd80afdd13c343ef2c2 (patch) | |
tree | 6a7341eafd2f9054dedf35faaef76deb92aa335c /sonar-plugin-api | |
parent | 50859eab4bac6fa4cfd2b72fd327addb3ade1bb7 (diff) | |
download | sonarqube-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.java | 2 |
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); } |