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

/** /**
* Unique key within sonar plugins * Unique key within sonar plugins
* @deprecated since 2.2. The key must be set in the manifest.
*/ */
@Deprecated
String getKey(); String getKey();
/** /**
* Descriptive name * Descriptive name
* @deprecated since 2.2. The name must be set in the manifest.
*/ */
@Deprecated
String getName(); String getName();
/** /**
* description of the plugin, can contains html or ruby code * 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(); String getDescription();
/** /**

+ 1
- 2
sonar-plugin-api/src/main/java/org/sonar/api/rules/AnnotationRuleRepository.java View File

* License along with Sonar; if not, write to the Free Software * License along with Sonar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/ */

package org.sonar.api.rules; package org.sonar.api.rules;


import com.google.common.collect.Lists; import com.google.common.collect.Lists;
private Collection<Class> annotatedClasses; private Collection<Class> annotatedClasses;


/** /**
* Use the factory method()
* Use the factory method create()
*/ */
private AnnotationRuleRepository(String key, String language, Collection<Class> annotatedClasses) { private AnnotationRuleRepository(String key, String language, Collection<Class> annotatedClasses) {
super(key, language); super(key, language);

Loading…
Cancel
Save