aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-check-api/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-check-api/src/main')
-rw-r--r--sonar-check-api/src/main/java/org/sonar/check/Rule.java2
-rw-r--r--sonar-check-api/src/main/java/org/sonar/check/Status.java6
2 files changed, 6 insertions, 2 deletions
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 3c92139c720..8ed70868ed4 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
@@ -65,5 +65,5 @@ public @interface Rule {
* The rule status. Can be Normal, Beta or Deprecated
* @since 3.6
*/
- Status status() default Status.NORMAL;
+ Status status() default Status.READY;
}
diff --git a/sonar-check-api/src/main/java/org/sonar/check/Status.java b/sonar-check-api/src/main/java/org/sonar/check/Status.java
index e8a1fd159ee..aa5d7e22506 100644
--- a/sonar-check-api/src/main/java/org/sonar/check/Status.java
+++ b/sonar-check-api/src/main/java/org/sonar/check/Status.java
@@ -24,5 +24,9 @@ package org.sonar.check;
* @since 3.6
*/
public enum Status {
- NORMAL, BETA, DEPRECATED
+ READY, BETA, DEPRECATED;
+
+ public static Status defaultValue() {
+ return Status.READY;
+ }
}