aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver
diff options
context:
space:
mode:
authorlukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com>2023-08-03 09:53:26 +0200
committersonartech <sonartech@sonarsource.com>2023-08-18 20:02:48 +0000
commit939c5c0c09c0818a7bf02fb8f23cb200a23ce4dc (patch)
tree26e64827e571140b5c20c8ad61a84f74fc790d45 /server/sonar-webserver
parentf25c6ec28647f3359ad72460039632eb8e2a8f2a (diff)
downloadsonarqube-939c5c0c09c0818a7bf02fb8f23cb200a23ce4dc.tar.gz
sonarqube-939c5c0c09c0818a7bf02fb8f23cb200a23ce4dc.zip
SONAR-20021 reducing the number of responsiblities and renaming of RegisterRules class to comply with Java standards
Diffstat (limited to 'server/sonar-webserver')
-rw-r--r--server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java
index f25523ff456..9e6c5f13f8c 100644
--- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java
+++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java
@@ -39,9 +39,11 @@ import org.sonar.server.qualityprofile.builtin.BuiltInQualityProfilesUpdateListe
import org.sonar.server.rule.AdvancedRuleDescriptionSectionsGenerator;
import org.sonar.server.rule.LegacyHotspotRuleDescriptionSectionsGenerator;
import org.sonar.server.rule.LegacyIssueRuleDescriptionSectionsGenerator;
-import org.sonar.server.rule.RegisterRules;
+import org.sonar.server.rule.registration.RulesKeyVerifier;
+import org.sonar.server.rule.registration.RulesRegistrant;
import org.sonar.server.rule.RuleDescriptionSectionsGeneratorResolver;
import org.sonar.server.rule.WebServerRuleFinder;
+import org.sonar.server.rule.registration.StartupRuleUpdater;
import org.sonar.server.startup.GeneratePluginIndex;
import org.sonar.server.startup.RegisterMetrics;
import org.sonar.server.startup.RegisterPermissionTemplates;
@@ -72,7 +74,9 @@ public class PlatformLevelStartup extends PlatformLevel {
AdvancedRuleDescriptionSectionsGenerator.class,
LegacyHotspotRuleDescriptionSectionsGenerator.class,
LegacyIssueRuleDescriptionSectionsGenerator.class,
- RegisterRules.class,
+ RulesRegistrant.class,
+ RulesKeyVerifier.class,
+ StartupRuleUpdater.class,
BuiltInQProfileLoader.class);
addIfStartupLeader(
BuiltInQualityProfilesUpdateListener.class,