]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-249 remove the annotation @SupportVariationDashboard
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 3 Dec 2010 11:35:57 +0000 (11:35 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 3 Dec 2010 11:35:57 +0000 (11:35 +0000)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/CodeCoverageWidget.java
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/CommentsDuplicationsWidget.java
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/ComplexityWidget.java
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/RulesWidget.java
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/SizeWidget.java
sonar-plugin-api/src/main/java/org/sonar/api/web/SupportVariationDashboard.java [deleted file]

index cdc3054543cc379f8856f2f58cd096c33c434871..cd3f09e0df9e093414366154c2b363d1c4412a29 100644 (file)
  */\r
 package org.sonar.plugins.core.widgets;\r
 \r
-import org.sonar.api.web.*;\r
+import org.sonar.api.web.AbstractRubyTemplate;\r
+import org.sonar.api.web.Description;\r
+import org.sonar.api.web.RubyRailsWidget;\r
+import org.sonar.api.web.WidgetCategory;\r
 \r
 @WidgetCategory({"Tests"})\r
 @Description("Reports on units tests and code coverage by unit tests.")\r
-@SupportVariationDashboard\r
 public class CodeCoverageWidget extends AbstractRubyTemplate implements RubyRailsWidget {\r
   public String getId() {\r
     return "code_coverage";\r
index deaf2312209474ccfda31927ee2cc2599147baaf..6244640336674767ae7d5b0d5375f966b4670d71 100644 (file)
@@ -22,10 +22,8 @@ package org.sonar.plugins.core.widgets;
 import org.sonar.api.web.AbstractRubyTemplate;\r
 import org.sonar.api.web.Description;\r
 import org.sonar.api.web.RubyRailsWidget;\r
-import org.sonar.api.web.SupportVariationDashboard;\r
 \r
 @Description("Reports on copy/paste and documentation")\r
-@SupportVariationDashboard\r
 public class CommentsDuplicationsWidget extends AbstractRubyTemplate implements RubyRailsWidget {\r
   public String getId() {\r
     return "comments_duplications";\r
index 48253c89b825b5e6b550d13d39f39b6318e0f91a..90dba687ae3e778b33d79f609657f872149f107d 100644 (file)
@@ -22,10 +22,8 @@ package org.sonar.plugins.core.widgets;
 import org.sonar.api.web.AbstractRubyTemplate;\r
 import org.sonar.api.web.Description;\r
 import org.sonar.api.web.RubyRailsWidget;\r
-import org.sonar.api.web.SupportVariationDashboard;\r
 \r
 @Description("Reports on complexity, average complexity and complexity distribution.")\r
-@SupportVariationDashboard\r
 public class ComplexityWidget extends AbstractRubyTemplate implements RubyRailsWidget {\r
   public String getId() {\r
     return "complexity";\r
index da43347c7c007e732997133fec61a7a1f6675e7a..d9d166aefdada24c827bcf435d638e81ac8b2300 100644 (file)
@@ -23,7 +23,6 @@ import org.sonar.api.web.*;
 \r
 @WidgetCategory({"Rules"})\r
 @Description("Reports violations and compliance index on coding standards.")\r
-@SupportVariationDashboard\r
 public class RulesWidget extends AbstractRubyTemplate implements RubyRailsWidget {\r
   public String getId() {\r
     return "rules";\r
index df04453f03c65bb60a134e21d6e1acbc49243844..3c6a5c4205599e139d83d496c635e335ad879983 100644 (file)
@@ -22,10 +22,8 @@ package org.sonar.plugins.core.widgets;
 import org.sonar.api.web.AbstractRubyTemplate;\r
 import org.sonar.api.web.Description;\r
 import org.sonar.api.web.RubyRailsWidget;\r
-import org.sonar.api.web.SupportVariationDashboard;\r
 \r
 @Description("Reports general metrics on the size of the project.")\r
-@SupportVariationDashboard\r
 public class SizeWidget extends AbstractRubyTemplate implements RubyRailsWidget {\r
   public String getId() {\r
     return "size";\r
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/SupportVariationDashboard.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/SupportVariationDashboard.java
deleted file mode 100644 (file)
index ab477c1..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2009 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02
- */
-package org.sonar.api.web;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Annotated widgets support the variation view of dashboards
- *
- * @since 2.5
- */
-@Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.TYPE)
-public @interface SupportVariationDashboard {
-  
-}