From 50e2bb1db1b097cac4fb73b4aa211a37ba2184b5 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 11 Apr 2016 10:57:05 +0200 Subject: Change return type of Plugin#getSonarQubeVersion() and improve Javadoc --- .../src/main/java/org/sonar/batch/bootstrap/ExtensionInstaller.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sonar-scanner-engine') diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionInstaller.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionInstaller.java index dfab90ea7e8..5794a8a0314 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionInstaller.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionInstaller.java @@ -23,7 +23,6 @@ import java.util.List; import javax.annotation.Nullable; import org.sonar.api.ExtensionProvider; import org.sonar.api.Plugin; -import org.sonar.api.SonarPlugin; import org.sonar.api.SonarQubeVersion; import org.sonar.api.batch.AnalysisMode; import org.sonar.core.platform.ComponentContainer; @@ -52,7 +51,7 @@ public class ExtensionInstaller { // plugin extensions for (PluginInfo pluginInfo : pluginRepository.getPluginInfos()) { Plugin plugin = pluginRepository.getPluginInstance(pluginInfo.getKey()); - Plugin.Context context = new Plugin.Context(sonarQubeVersion); + Plugin.Context context = new Plugin.Context(sonarQubeVersion.get()); plugin.define(context); for (Object extension : context.getExtensions()) { doInstall(container, matcher, pluginInfo, extension); -- cgit v1.2.3