Make value of SonarProperties#property nullable#247
Make value of SonarProperties#property nullable#247Vampire wants to merge 1 commit intoSonarSource:masterfrom
Conversation
|
hey @Vampire, thank you for the suggestion. Do you have any tests that effectively show that a nullable value actually removes the property from the collection? |
|
I don't really get your comment, sorry. This is not a suggestion, but a definite bug report. And it of course does not remove the property from the collection, why should it? It sets is value in the collection to |
My bad, I did not understand what you were trying to achieve here.
Could you share, here or in the community forums, an example of a build configuration that triggers the bug? |
I'm porting a Groovy DSL build to Kotlin DSL.
Before I did things like
to override
fooand either set it to some value or unset it otherwise.In Kotlin DSL you cannot do
currently due to the
@ParametersAreNonnullByDefaultin thepackage-info.javaand Kotlin respecting that, so having the value parameter non-nullable.Work-around is to use
or
This PR makes the value parameter nullable, so you can also use the first Kotlin snippet above.