From: Julien Lancelot Date: Fri, 20 May 2016 07:28:06 +0000 (+0200) Subject: Fix quality flaw X-Git-Tag: 5.6-RC1~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=363588ba0d89ce2449a6d93f739cadf86e30618b;p=sonarqube.git Fix quality flaw --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/qualitygate/QualityGates.java b/server/sonar-server/src/main/java/org/sonar/server/qualitygate/QualityGates.java index 764452c05a6..9925fb6eb5e 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/qualitygate/QualityGates.java +++ b/server/sonar-server/src/main/java/org/sonar/server/qualitygate/QualityGates.java @@ -277,7 +277,7 @@ public class QualityGates { return from(conditionDao.selectForQualityGate(qGateId)).filter(new MatchConditionId(conditionId)).toList(); } - private void validateCondition(Metric metric, String operator, @Nullable String warningThreshold, @Nullable String errorThreshold, @Nullable Integer period) { + private static void validateCondition(Metric metric, String operator, @Nullable String warningThreshold, @Nullable String errorThreshold, @Nullable Integer period) { Errors errors = new Errors(); validateMetric(metric, errors); checkOperator(metric, operator, errors);