From b2c6d534251f2d2ed12256ff7b57ddba0d067dde Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Tue, 1 Jul 2014 17:52:15 +0200 Subject: [PATCH] fix quality flaws --- .../org/sonar/server/activity/index/ActivityNormalizer.java | 2 +- .../server/qualityprofile/index/ActiveRuleNormalizer.java | 3 ++- .../main/java/org/sonar/server/rule/index/RuleNormalizer.java | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sonar-server/src/main/java/org/sonar/server/activity/index/ActivityNormalizer.java b/sonar-server/src/main/java/org/sonar/server/activity/index/ActivityNormalizer.java index 06c53600382..531caf5cf0a 100644 --- a/sonar-server/src/main/java/org/sonar/server/activity/index/ActivityNormalizer.java +++ b/sonar-server/src/main/java/org/sonar/server/activity/index/ActivityNormalizer.java @@ -57,7 +57,7 @@ public class ActivityNormalizer extends BaseNormalizer { public static final IndexField DETAILS = addSearchable(IndexField.Type.OBJECT, "details"); public static final IndexField MESSAGE = addSearchable(IndexField.Type.STRING, "message"); - public static final Set ALL_FIELDS = getAllFields(); + public static Set ALL_FIELDS = getAllFields(); private static final Set getAllFields() { Set fields = new HashSet(); diff --git a/sonar-server/src/main/java/org/sonar/server/qualityprofile/index/ActiveRuleNormalizer.java b/sonar-server/src/main/java/org/sonar/server/qualityprofile/index/ActiveRuleNormalizer.java index 3306df57e7c..f6f273a9e68 100644 --- a/sonar-server/src/main/java/org/sonar/server/qualityprofile/index/ActiveRuleNormalizer.java +++ b/sonar-server/src/main/java/org/sonar/server/qualityprofile/index/ActiveRuleNormalizer.java @@ -55,7 +55,8 @@ public class ActiveRuleNormalizer extends BaseNormalizer ALL_FIELDS = getAllFields(); + + public static Set ALL_FIELDS = getAllFields(); private static Set getAllFields() { Set fields = new HashSet(); diff --git a/sonar-server/src/main/java/org/sonar/server/rule/index/RuleNormalizer.java b/sonar-server/src/main/java/org/sonar/server/rule/index/RuleNormalizer.java index 912cfad380e..f907e993ea6 100644 --- a/sonar-server/src/main/java/org/sonar/server/rule/index/RuleNormalizer.java +++ b/sonar-server/src/main/java/org/sonar/server/rule/index/RuleNormalizer.java @@ -54,7 +54,8 @@ public class RuleNormalizer extends BaseNormalizer { public static final IndexField TYPE = add(IndexField.Type.STRING, "type"); public static final IndexField DESCRIPTION = addSearchable(IndexField.Type.TEXT, "description"); public static final IndexField DEFAULT_VALUE = add(IndexField.Type.STRING, "defaultValue"); - public static final Set ALL_FIELDS = getAllFields(); + + public static Set ALL_FIELDS = getAllFields(); private static final Set getAllFields() { Set fields = new HashSet(); -- 2.39.5