]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaws
authorStephane Gamard <stephane.gamard@searchbox.com>
Tue, 1 Jul 2014 14:50:20 +0000 (16:50 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Tue, 1 Jul 2014 14:50:32 +0000 (16:50 +0200)
sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java

index 7b482f6d541c826f0875044bdd90d5873a94b3e6..15f2926ee219a464f289ee52bf906bcf1d076421 100644 (file)
@@ -298,10 +298,10 @@ public class RuleIndex extends BaseIndex<Rule, RuleDto, RuleKey> {
     }
 
     /** Implementation of activation query */
-    if (query.getActivation().equals(Boolean.TRUE)) {
+    if (Boolean.TRUE.equals(query.getActivation())) {
       fb.must(FilterBuilders.hasChildFilter(IndexDefinition.ACTIVE_RULE.getIndexType(),
         childQuery));
-    } else if (query.getActivation().equals(Boolean.FALSE)) {
+    } else if (Boolean.FALSE.equals(query.getActivation())) {
       fb.mustNot(FilterBuilders.hasChildFilter(IndexDefinition.ACTIVE_RULE.getIndexType(),
         childQuery));
     }