Browse Source

depreciate the methods Plugin.getKey(), getName() and getDescription()

tags/2.6
simonbrandhof 13 years ago
parent
commit
edbb6d604f

+ 6
- 0
sonar-plugin-api/src/main/java/org/sonar/api/Plugin.java View File

@@ -34,17 +34,23 @@ public interface Plugin {
/**
* Unique key within sonar plugins
* @deprecated since 2.2. The key must be set in the manifest.
*/
@Deprecated
String getKey();
/**
* Descriptive name
* @deprecated since 2.2. The name must be set in the manifest.
*/
@Deprecated
String getName();
/**
* description of the plugin, can contains html or ruby code
* @deprecated since 2.2. The description must be set in the manifest.
*/
@Deprecated
String getDescription();
/**

+ 1
- 2
sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleRepository.java View 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);

Loading…
Cancel
Save