summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-01-10 14:21:21 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-01-10 14:21:21 +0100
commit2647d0f4b78c682da31b5ccfd17107577f9eeecb (patch)
tree7f5c2d5d123bf8b839a1480aa38153e8c130ae28 /sonar-server
parent259530d1439951f3fd9ba70469fb0fa2cd0db665 (diff)
downloadsonarqube-2647d0f4b78c682da31b5ccfd17107577f9eeecb.tar.gz
sonarqube-2647d0f4b78c682da31b5ccfd17107577f9eeecb.zip
filters: fix bug when CRITERIA.VARIATION is null
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/java/org/sonar/server/filters/MeasureCriterion.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/filters/MeasureCriterion.java b/sonar-server/src/main/java/org/sonar/server/filters/MeasureCriterion.java
index b6b025fab49..810b24d0c03 100644
--- a/sonar-server/src/main/java/org/sonar/server/filters/MeasureCriterion.java
+++ b/sonar-server/src/main/java/org/sonar/server/filters/MeasureCriterion.java
@@ -60,8 +60,8 @@ public class MeasureCriterion {
this.value = value;
}
- public Boolean isVariation() {
- return variation;
+ public boolean isVariation() {
+ return variation==Boolean.TRUE;
}
public MeasureCriterion setVariation(Boolean b) {