summaryrefslogtreecommitdiffstats
path: root/plugins/sonar-cobertura-plugin
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-03-25 02:56:46 +0300
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-04-04 22:46:21 +0400
commitd4bb3b72f9e188c93d0857d478a3ebc6f52365c1 (patch)
tree0109f7c074ad54661ff60d89bfab215ac3fa02a5 /plugins/sonar-cobertura-plugin
parent628bb6718fc76baba8f452691cfc983a000e1397 (diff)
downloadsonarqube-d4bb3b72f9e188c93d0857d478a3ebc6f52365c1.tar.gz
sonarqube-d4bb3b72f9e188c93d0857d478a3ebc6f52365c1.zip
SONAR-1898 Introduce new entry point - SonarPlugin
Diffstat (limited to 'plugins/sonar-cobertura-plugin')
-rw-r--r--plugins/sonar-cobertura-plugin/src/main/java/org/sonar/plugins/cobertura/CoberturaPlugin.java19
1 files changed, 1 insertions, 18 deletions
diff --git a/plugins/sonar-cobertura-plugin/src/main/java/org/sonar/plugins/cobertura/CoberturaPlugin.java b/plugins/sonar-cobertura-plugin/src/main/java/org/sonar/plugins/cobertura/CoberturaPlugin.java
index 2ab62423cb1..91e37b6fada 100644
--- a/plugins/sonar-cobertura-plugin/src/main/java/org/sonar/plugins/cobertura/CoberturaPlugin.java
+++ b/plugins/sonar-cobertura-plugin/src/main/java/org/sonar/plugins/cobertura/CoberturaPlugin.java
@@ -38,19 +38,7 @@ import java.util.List;
description = "Maximum memory to pass to JVM of Cobertura processes",
project = true,
global = true) })
-public class CoberturaPlugin implements Plugin {
-
- public String getKey() {
- return CoreProperties.COBERTURA_PLUGIN;
- }
-
- public String getName() {
- return "Cobertura";
- }
-
- public String getDescription() {
- return "Cobertura is a tool that calculates the percentage of code accessed by tests. It can be used to identify which parts of Java program are lacking test coverage. You can find more by going to the <a href='http://cobertura.sourceforge.net'>Cobertura web site</a>.";
- }
+public class CoberturaPlugin extends SonarPlugin {
public List<Class<? extends Extension>> getExtensions() {
List<Class<? extends Extension>> list = new ArrayList<Class<? extends Extension>>();
@@ -59,9 +47,4 @@ public class CoberturaPlugin implements Plugin {
list.add(CoberturaMavenInitializer.class);
return list;
}
-
- @Override
- public String toString() {
- return getKey();
- }
}