aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-check-api/src
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-01 11:30:48 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-01 11:30:48 +0000
commite537ea6120df8eb20ba04da66811c21161f6ec6d (patch)
treee0e5898938290b5506bb834106c908780125ff88 /sonar-check-api/src
parent0441e5cb03ef5fcd21f681682a994437e985768d (diff)
downloadsonarqube-e537ea6120df8eb20ba04da66811c21161f6ec6d.tar.gz
sonarqube-e537ea6120df8eb20ba04da66811c21161f6ec6d.zip
SONAR-2007 Remove the useless ISO Categories + fix components page
Diffstat (limited to 'sonar-check-api/src')
-rw-r--r--sonar-check-api/src/main/java/org/sonar/check/IsoCategory.java4
-rw-r--r--sonar-check-api/src/main/java/org/sonar/check/Rule.java2
-rw-r--r--sonar-check-api/src/test/java/org/sonar/check/CheckTest.java1
3 files changed, 5 insertions, 2 deletions
diff --git a/sonar-check-api/src/main/java/org/sonar/check/IsoCategory.java b/sonar-check-api/src/main/java/org/sonar/check/IsoCategory.java
index d85967bf0a2..4d1aa0d7d31 100644
--- a/sonar-check-api/src/main/java/org/sonar/check/IsoCategory.java
+++ b/sonar-check-api/src/main/java/org/sonar/check/IsoCategory.java
@@ -19,6 +19,10 @@
*/
package org.sonar.check;
+/**
+ * @deprecated since 2.5. See http://jira.codehaus.org/browse/SONAR-2007
+ */
+@Deprecated
public enum IsoCategory {
Reliability, Efficiency, Portability, Usability, Maintainability, NONE
diff --git a/sonar-check-api/src/main/java/org/sonar/check/Rule.java b/sonar-check-api/src/main/java/org/sonar/check/Rule.java
index 20c4cb0e34c..5e7d1902104 100644
--- a/sonar-check-api/src/main/java/org/sonar/check/Rule.java
+++ b/sonar-check-api/src/main/java/org/sonar/check/Rule.java
@@ -54,7 +54,7 @@ public @interface Rule {
/**
* Will probably be deprecated and replaced by tags
*/
- IsoCategory isoCategory();
+ IsoCategory isoCategory() default IsoCategory.NONE;
Cardinality cardinality() default Cardinality.SINGLE;
} \ No newline at end of file
diff --git a/sonar-check-api/src/test/java/org/sonar/check/CheckTest.java b/sonar-check-api/src/test/java/org/sonar/check/CheckTest.java
index e0758fb789d..a1051e09c70 100644
--- a/sonar-check-api/src/test/java/org/sonar/check/CheckTest.java
+++ b/sonar-check-api/src/test/java/org/sonar/check/CheckTest.java
@@ -32,7 +32,6 @@ public class CheckTest {
Check check = FakeCheck.class.getAnnotation(Check.class);
assertThat(check.title(), is("Detailed Check"));
assertThat(check.description(), is("Detailed description"));
- assertThat(check.isoCategory(), is(IsoCategory.Reliability));
}
@Test