diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-01-15 16:57:48 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-01-25 17:23:09 +0100 |
commit | 7506fd298b7dbf2d8504536d8da20e790752eab4 (patch) | |
tree | d90ae13ed3f7b82c05e326c3b1248d98c198c50a /sonar-plugin-api | |
parent | b56784c3752c5742aed9bf66e307e6ab14c3080f (diff) | |
download | sonarqube-7506fd298b7dbf2d8504536d8da20e790752eab4.tar.gz sonarqube-7506fd298b7dbf2d8504536d8da20e790752eab4.zip |
SONAR-10288 scanner multivalue property parsing ignore empty fields
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/config/Configuration.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/config/Configuration.java b/sonar-plugin-api/src/main/java/org/sonar/api/config/Configuration.java index f4e433c8533..3e89c24371e 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/config/Configuration.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/config/Configuration.java @@ -106,13 +106,15 @@ public interface Configuration { * <p> * See {@link PropertyDefinition.Builder#multiValues(boolean)} * Multi-valued properties coming from scanner are parsed as CSV lines (ie comma separator and optional double quotes to escape values). - * Non quoted values are trimmed. + * Non quoted values are trimmed and empty fields are ignored. * <br> * Examples : * <ul> * <li>"one,two,three " -> ["one", "two", "three"]</li> * <li>" one, two, three " -> ["one", "two", "three"]</li> - * <li>"one, , three" -> ["one", "", "three"]</li> + * <li>"one, three" -> ["one", "three"]</li> + * <li>"one,"", three" -> ["one", "", "three"]</li> + * <li>"one, " " , three" -> ["one", " ", "three"]</li> * <li>"one,\"two,three\",\" four \"" -> ["one", "two,three", " four "]</li> * </ul> */ |