From 3d4fc89dcb178c5f7188dd34f05fee580bc3906f Mon Sep 17 00:00:00 2001 From: Godin Date: Mon, 6 Dec 2010 18:20:28 +0000 Subject: SONAR-1829: Rename the term "Priority" by "Severity" for rules - add setSeverity/getSeverity and deprecate setPriority/getPriority --- sonar-check-api/src/main/java/org/sonar/check/Check.java | 8 +++++--- sonar-check-api/src/main/java/org/sonar/check/Rule.java | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'sonar-check-api') 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 +} -- cgit v1.2.3