diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/plugins/edition/EditionInstaller.java | 9 |
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()); - } - } |