aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-08-01 09:11:17 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-08-01 09:11:27 +0200
commitede735f23d151c88639c051bf92ca44e24669bda (patch)
tree86ba3dbc9769d41021522b48601b054f93e80158 /sonar-plugin-api/src
parent0ad8ad2414a4c6ada37141b13e4f3ec6c32dbc05 (diff)
downloadsonarqube-ede735f23d151c88639c051bf92ca44e24669bda.tar.gz
sonarqube-ede735f23d151c88639c051bf92ca44e24669bda.zip
Fix javadoc of Plugin API
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java b/sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java
index 02a19b18ec7..1afde4f24b8 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java
@@ -69,13 +69,11 @@ import static java.util.Objects.requireNonNull;
*
* <p>Example of test
* <pre>
- * MyPlugin underTest = new MyPlugin();
- *
*{@literal @}Test
* public void test_plugin_extensions_compatible_with_5_6() {
- * SonarRuntime runtime = SonarRuntimeImpl.forSonarQube(Version.create(5, 6));
+ * SonarRuntime runtime = SonarRuntimeImpl.forSonarQube(Version.create(5, 6), SonarQubeSide.SCANNER);
* Plugin.Context context = new Plugin.Context(runtime);
- * underTest.define(context);
+ * new MyPlugin().define(context);
* assertThat(context.getExtensions()).hasSize(4);
* }
* </pre>