aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@sonarsource.com>2014-10-08 11:49:37 +0200
committerStephane Gamard <stephane.gamard@sonarsource.com>2014-10-08 12:20:14 +0200
commit3a0353c574d600c398df2a47692144f8fb0e2a0c (patch)
tree97a22d18e304b48b685bd818a78a564caf3ac8e0 /server
parentaeadcb7725ccde1f6557cbcd4e2af5ffd73b92fa (diff)
downloadsonarqube-3a0353c574d600c398df2a47692144f8fb0e2a0c.tar.gz
sonarqube-3a0353c574d600c398df2a47692144f8fb0e2a0c.zip
fix quality flaw
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java b/server/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java
index 1fa6667309d..2a393da1818 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java
@@ -330,7 +330,7 @@ public class RuleIndex extends BaseIndex<Rule, RuleDto, RuleKey> {
BoolFilterBuilder langFacetFilter = FilterBuilders.boolFilter().must(FilterBuilders.queryFilter(query));
for (Map.Entry<String, FilterBuilder> filter : filters.entrySet()) {
- if (filter.getKey() != RuleNormalizer.RuleField.LANGUAGE.field()) {
+ if (!StringUtils.equals(filter.getKey(), RuleNormalizer.RuleField.LANGUAGE.field())) {
langFacetFilter.must(filter.getValue());
}
}
@@ -351,7 +351,7 @@ public class RuleIndex extends BaseIndex<Rule, RuleDto, RuleKey> {
BoolFilterBuilder tagsFacetFilter = FilterBuilders.boolFilter().must(FilterBuilders.queryFilter(query));
for (Map.Entry<String, FilterBuilder> filter : filters.entrySet()) {
- if (filter.getKey() != RuleNormalizer.RuleField._TAGS.field()) {
+ if (!StringUtils.equals(filter.getKey(), RuleNormalizer.RuleField._TAGS.field())) {
tagsFacetFilter.must(filter.getValue());
}
}
@@ -372,7 +372,7 @@ public class RuleIndex extends BaseIndex<Rule, RuleDto, RuleKey> {
BoolFilterBuilder repositoriesFacetFilter = FilterBuilders.boolFilter().must(FilterBuilders.queryFilter(query));
for (Map.Entry<String, FilterBuilder> filter : filters.entrySet()) {
- if (filter.getKey() != RuleNormalizer.RuleField.REPOSITORY.field()) {
+ if (!StringUtils.equals(filter.getKey(), RuleNormalizer.RuleField.REPOSITORY.field())) {
repositoriesFacetFilter.must(filter.getValue());
}
}