summaryrefslogtreecommitdiffstats
path: root/sonar-check-api/src
diff options
context:
space:
mode:
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