]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaw
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 20 May 2016 07:28:06 +0000 (09:28 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 20 May 2016 07:28:06 +0000 (09:28 +0200)
server/sonar-server/src/main/java/org/sonar/server/qualitygate/QualityGates.java

index 764452c05a6c1402b0b727abeb68156a11f56784..9925fb6eb5e42d565c919a366397ef730ccb1cd0 100644 (file)
@@ -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);