diff options
Diffstat (limited to 'sonar-check-api/src/main/java')
-rw-r--r-- | sonar-check-api/src/main/java/org/sonar/check/IsoCategory.java | 4 | ||||
-rw-r--r-- | sonar-check-api/src/main/java/org/sonar/check/Rule.java | 2 |
2 files changed, 5 insertions, 1 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 |