"Prefer StringBuffer over += for concatenating strings" - when using string...
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Hi All,
could someone please explain me the below behavior of PMD plugin, when trying to perform String Reassignment using ternary operators.
Please find the below sample code, which is throwing this exception.
i am not sure, why PMD is treating the same as String Concatination instead of usual reassignment.
Thanks,
Last edit: Andreas Dangel 2015-04-20
This looks like a bug. I've created an issue [#1340] for this. Thanks!
Related
Issues:
#1340I can't reproduce this with PMD 5.3.1 - which version of PMD were you using?