From d4bb3b72f9e188c93d0857d478a3ebc6f52365c1 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Fri, 25 Mar 2011 02:56:46 +0300 Subject: SONAR-1898 Introduce new entry point - SonarPlugin --- .../org/sonar/plugins/cobertura/CoberturaPlugin.java | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'plugins/sonar-cobertura-plugin/src') 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 Cobertura web site."; - } +public class CoberturaPlugin extends SonarPlugin { public List> getExtensions() { List> list = new ArrayList>(); @@ -59,9 +47,4 @@ public class CoberturaPlugin implements Plugin { list.add(CoberturaMavenInitializer.class); return list; } - - @Override - public String toString() { - return getKey(); - } } -- cgit v1.2.3