diff options
author | Godin <mandrikov@gmail.com> | 2010-12-06 18:20:28 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-12-06 18:20:28 +0000 |
commit | 3d4fc89dcb178c5f7188dd34f05fee580bc3906f (patch) | |
tree | f5201fe739ecbfac700052b42d183402d027dc61 /sonar-check-api | |
parent | 6b3d13a08f5240d86ee3cdd5e0f955bf51cdc431 (diff) | |
download | sonarqube-3d4fc89dcb178c5f7188dd34f05fee580bc3906f.tar.gz sonarqube-3d4fc89dcb178c5f7188dd34f05fee580bc3906f.zip |
SONAR-1829: Rename the term "Priority" by "Severity" for rules - add setSeverity/getSeverity and deprecate setPriority/getPriority
Diffstat (limited to 'sonar-check-api')
-rw-r--r-- | sonar-check-api/src/main/java/org/sonar/check/Check.java | 8 | ||||
-rw-r--r-- | sonar-check-api/src/main/java/org/sonar/check/Rule.java | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/sonar-check-api/src/main/java/org/sonar/check/Check.java b/sonar-check-api/src/main/java/org/sonar/check/Check.java index 6731d041560..274192d5dcc 100644 --- a/sonar-check-api/src/main/java/org/sonar/check/Check.java +++ b/sonar-check-api/src/main/java/org/sonar/check/Check.java @@ -39,7 +39,7 @@ public @interface Check { String key() default ""; /** - * The path to resource bundles (optional). If not set, then it equals the class name. + * The path to resource bundles (optional). If not set, then it equals the class name. */ String bundle() default ""; @@ -58,9 +58,11 @@ public @interface Check { */ Priority priority() default Priority.MAJOR; - /** - * Will probably be deprecated and replaced by tags in version 2.2 + * Will probably be deprecated and replaced by tags + * + * @deprecated since 2.5. See http://jira.codehaus.org/browse/SONAR-2007 */ + @Deprecated IsoCategory isoCategory(); } 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 fe99c2e1c22..905c59b4099 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 @@ -56,7 +56,8 @@ public @interface Rule { * * @deprecated since 2.5. See http://jira.codehaus.org/browse/SONAR-2007 */ + @Deprecated IsoCategory isoCategory() default IsoCategory.NONE; Cardinality cardinality() default Cardinality.SINGLE; -}
\ No newline at end of file +} |