diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2013-12-03 16:46:42 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2013-12-03 16:46:42 +0100 |
commit | 5a6677e6fcffe2cb88944ab6498bf2dbc30776e7 (patch) | |
tree | d31cf5578d0447d773d9b41c12f3f51d89f0dc0c /sonar-plugin-api | |
parent | 80151c7bf59af795045df02b2dddaf58aaf77393 (diff) | |
download | sonarqube-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.java | 5 |
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; } } |