summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-03 16:46:42 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-03 16:46:42 +0100
commit5a6677e6fcffe2cb88944ab6498bf2dbc30776e7 (patch)
treed31cf5578d0447d773d9b41c12f3f51d89f0dc0c /sonar-plugin-api
parent80151c7bf59af795045df02b2dddaf58aaf77393 (diff)
downloadsonarqube-5a6677e6fcffe2cb88944ab6498bf2dbc30776e7.tar.gz
sonarqube-5a6677e6fcffe2cb88944ab6498bf2dbc30776e7.zip
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java5
1 files changed, 3 insertions, 2 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 3b964a214e1..d42f3c329f3 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
@@ -76,11 +76,12 @@ public final class MeasuresFilters {
return null;
}
for (Measure measure : measures) {
+ Characteristic measureCharacteristic = measure.getCharacteristic();
if (measure.getClass().equals(Measure.class) &&
measure.getMetric().equals(metric) &&
measure.getPersonId() == null &&
- measure.getCharacteristic() != null &&
- measure.getCharacteristic().equals(characteristic)) {
+ measureCharacteristic != null &&
+ measureCharacteristic.equals(characteristic)) {
return measure;
}
}