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 --- .../src/main/java/org/sonar/plugins/cpd/CpdPlugin.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'plugins/sonar-cpd-plugin') diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java index 4950b178270..7a11a8fcd0f 100644 --- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java +++ b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java @@ -20,9 +20,9 @@ package org.sonar.plugins.cpd; import org.sonar.api.CoreProperties; -import org.sonar.api.Plugin; import org.sonar.api.Properties; import org.sonar.api.Property; +import org.sonar.api.SonarPlugin; import org.sonar.plugins.cpd.decorators.DuplicationDensityDecorator; import org.sonar.plugins.cpd.decorators.SumDuplicationsDecorator; @@ -64,19 +64,7 @@ import java.util.List; module = true, global = true) }) -public class CpdPlugin implements Plugin { - - public String getKey() { - return CoreProperties.CPD_PLUGIN; - } - - public String getName() { - return "Duplications"; - } - - public String getDescription() { - return "Find duplicated source code within project."; - } +public class CpdPlugin extends SonarPlugin { public List getExtensions() { return Arrays.asList(CpdSensor.class, SumDuplicationsDecorator.class, DuplicationDensityDecorator.class, JavaCpdMapping.class); -- cgit v1.2.3