summaryrefslogtreecommitdiffstats
path: root/sonar-check-api/src/main
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-07-06 15:25:10 +0200
committerDavid Gageot <david@gageot.net>2012-07-06 15:55:27 +0200
commit1bf2a07bdcd8e56b485554687c8c3b6029dd7f7c (patch)
treef1bce2b45478e2818f5bcab0ee668dfd93d5ce54 /sonar-check-api/src/main
parented4714d8e0a753d32e14a0adadcd2e135826bf1b (diff)
downloadsonarqube-1bf2a07bdcd8e56b485554687c8c3b6029dd7f7c.tar.gz
sonarqube-1bf2a07bdcd8e56b485554687c8c3b6029dd7f7c.zip
SONAR-3432 Support rule property types in annotations
Diffstat (limited to 'sonar-check-api/src/main')
-rw-r--r--sonar-check-api/src/main/java/org/sonar/check/RuleProperty.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-check-api/src/main/java/org/sonar/check/RuleProperty.java b/sonar-check-api/src/main/java/org/sonar/check/RuleProperty.java
index efcf609eaba..44d1e91094a 100644
--- a/sonar-check-api/src/main/java/org/sonar/check/RuleProperty.java
+++ b/sonar-check-api/src/main/java/org/sonar/check/RuleProperty.java
@@ -46,4 +46,13 @@ public @interface RuleProperty {
* Optional default value.
*/
String defaultValue() default "";
+
+ /**
+ * Optional type.
+ * See {@org.sonar.api.PropertyType} for possible values.
+ * If <code>type</code> is ommited, it is guessed from the type of the annotated field.
+ *
+ * @since 3.2
+ */
+ String type() default "";
}