aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-10-17 18:29:24 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-23 08:01:13 -0700
commit40441a529bbf9af6735b3d37aebdf7fcb410d443 (patch)
tree9ccf76cdbeab5b4e4b9ae0419848e15f5dd5aead /server
parent6923dc82c9337e80d9aa0de8456accffa2313e24 (diff)
downloadsonarqube-40441a529bbf9af6735b3d37aebdf7fcb410d443.tar.gz
sonarqube-40441a529bbf9af6735b3d37aebdf7fcb410d443.zip
SONAR-10002 use EditionBundledPlugins#isEditionBundled in installer
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/plugins/edition/EditionInstaller.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/plugins/edition/EditionInstaller.java b/server/sonar-server/src/main/java/org/sonar/server/plugins/edition/EditionInstaller.java
index 057cbe0a8e2..bba40e79e3c 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/plugins/edition/EditionInstaller.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/plugins/edition/EditionInstaller.java
@@ -59,8 +59,7 @@ public class EditionInstaller {
/**
* Refreshes the update center, and submits in a executor a task to download all the needed plugins (asynchronously).
- * If the update center is disabled or if we are offline, the task is not submitted and false is returned.
- * In all case
+ * If the update center is disabled or if we are offline, the task is not submitted.
*
* @throws IllegalStateException if an installation is already in progress
*/
@@ -134,7 +133,7 @@ public class EditionInstaller {
private Set<String> pluginsToRemove(Set<String> editionPluginKeys, Collection<PluginInfo> installedPluginInfos) {
Set<String> installedCommercialPluginKeys = installedPluginInfos.stream()
- .filter(EditionInstaller::isSonarSourceCommercialPlugin)
+ .filter(EditionBundledPlugins::isEditionBundled)
.map(PluginInfo::getKey)
.collect(Collectors.toSet());
@@ -143,8 +142,4 @@ public class EditionInstaller {
.collect(Collectors.toSet());
}
- private static boolean isSonarSourceCommercialPlugin(PluginInfo pluginInfo) {
- return "Commercial".equals(pluginInfo.getLicense()) && "SonarSource".equals(pluginInfo.getOrganizationName());
- }
-
}