/**
* 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
*/
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());
.collect(Collectors.toSet());
}
- private static boolean isSonarSourceCommercialPlugin(PluginInfo pluginInfo) {
- return "Commercial".equals(pluginInfo.getLicense()) && "SonarSource".equals(pluginInfo.getOrganizationName());
- }
-
}