aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2018-01-15 16:57:48 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2018-01-25 17:23:09 +0100
commit7506fd298b7dbf2d8504536d8da20e790752eab4 (patch)
treed90ae13ed3f7b82c05e326c3b1248d98c198c50a /sonar-plugin-api
parentb56784c3752c5742aed9bf66e307e6ab14c3080f (diff)
downloadsonarqube-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.java6
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 " -&gt; ["one", "two", "three"]</li>
* <li>" one, two, three " -&gt; ["one", "two", "three"]</li>
- * <li>"one, , three" -&gt; ["one", "", "three"]</li>
+ * <li>"one, three" -&gt; ["one", "three"]</li>
+ * <li>"one,"", three" -&gt; ["one", "", "three"]</li>
+ * <li>"one, " " , three" -&gt; ["one", " ", "three"]</li>
* <li>"one,\"two,three\",\" four \"" -&gt; ["one", "two,three", " four "]</li>
* </ul>
*/