aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-04-10 17:11:32 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-04-10 17:11:40 +0200
commit18fbb41d409fa4b58e298de2d30581d8e1f4a3a8 (patch)
tree8da95c31da78c25c76e8cf2fc3fb60d11ef71dd9 /sonar-batch
parent0714ae86a68f3230d1819ff02f2e26eb31e114fe (diff)
downloadsonarqube-18fbb41d409fa4b58e298de2d30581d8e1f4a3a8.tar.gz
sonarqube-18fbb41d409fa4b58e298de2d30581d8e1f4a3a8.zip
Fix quality flaws
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/qualitygate/ConditionUtils.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/qualitygate/ConditionUtils.java b/sonar-batch/src/main/java/org/sonar/batch/qualitygate/ConditionUtils.java
index 95c10767ae5..f2e5b36bbe2 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/qualitygate/ConditionUtils.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/qualitygate/ConditionUtils.java
@@ -66,19 +66,19 @@ class ConditionUtils {
}
private static boolean isNotEquals(int comparison, ResolvedCondition condition) {
- return condition.operator().equals("NE") && comparison == 0;
+ return "NE".equals(condition.operator()) && comparison == 0;
}
private static boolean isGreater(int comparison, ResolvedCondition condition) {
- return condition.operator().equals("GT") && comparison != 1;
+ return "GT".equals(condition.operator()) && comparison != 1;
}
private static boolean isSmaller(int comparison, ResolvedCondition condition) {
- return condition.operator().equals("LT") && comparison != -1;
+ return "LT".equals(condition.operator()) && comparison != -1;
}
private static boolean isEquals(int comparison, ResolvedCondition condition) {
- return condition.operator().equals("EQ") && comparison != 0;
+ return "EQ".equals(condition.operator()) && comparison != 0;
}
private static String getValueToEval(ResolvedCondition condition, Metric.Level alertLevel) {