summaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-04-11 10:57:05 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-04-11 10:57:50 +0200
commit50e2bb1db1b097cac4fb73b4aa211a37ba2184b5 (patch)
treead58a49eca1f00585dc2e15ae53b9ad23fddc50e /sonar-scanner-engine
parenta5338f2a09043c24f2cae4fc50ac4fc82891eaaf (diff)
downloadsonarqube-50e2bb1db1b097cac4fb73b4aa211a37ba2184b5.tar.gz
sonarqube-50e2bb1db1b097cac4fb73b4aa211a37ba2184b5.zip
Change return type of Plugin#getSonarQubeVersion()
and improve Javadoc
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionInstaller.java3
1 files changed, 1 insertions, 2 deletions
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);