]> source.dussan.org Git - sonarqube.git/commitdiff
depreciate the methods Plugin.getKey(), getName() and getDescription()
authorsimonbrandhof <simon.brandhof@gmail.com>
Thu, 23 Sep 2010 14:33:58 +0000 (14:33 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Thu, 23 Sep 2010 14:33:58 +0000 (14:33 +0000)
sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java
sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleRepository.java

index a0a953fbde991cb800d74b5e0f58e1101748caa4..5038b9a714d89163bd2aadf5be52052df52492f2 100644 (file)
@@ -34,17 +34,23 @@ public interface Plugin {
 \r
   /**\r
    * Unique key within sonar plugins\r
+   * @deprecated since 2.2. The key must be set in the manifest.\r
    */\r
+  @Deprecated\r
   String getKey();\r
 \r
   /**\r
    * Descriptive name\r
+   * @deprecated since 2.2. The name must be set in the manifest.\r
    */\r
+  @Deprecated\r
   String getName();\r
 \r
   /**\r
    * description of the plugin, can contains html or ruby code\r
+   * @deprecated since 2.2. The description must be set in the manifest.\r
    */\r
+  @Deprecated\r
   String getDescription();\r
 \r
   /**\r
index c19878dd8007100c4f03a36493ba3f5c7636951b..984f710b944503ffdb78c1a58e57ae351f4eb13b 100644 (file)
@@ -17,7 +17,6 @@
  * 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.rules;
 
 import com.google.common.collect.Lists;
@@ -41,7 +40,7 @@ public final class AnnotationRuleRepository extends RuleRepository {
   private Collection<Class> annotatedClasses;
 
   /**
-   * Use the factory method()
+   * Use the factory method create()
    */
   private AnnotationRuleRepository(String key, String language, Collection<Class> annotatedClasses) {
     super(key, language);