jborgers / PMD-jPinpoint-rules

PMD rule set for responsible Java and Kotlin coding: performance, sustainability, multi-threading, data mixup and more.
Apache License 2.0
43 stars 10 forks source link

pmd7 fix request #413 AvoidUnnecessaryStringBuilderCreation while loop - fix false positive #414

Open stokpop opened 2 weeks ago

stokpop commented 2 weeks ago

Tried to simplify xpath.

All unit test are green.

Can we think of more while/stream/for loops that we missed? Watch for more false positives with new xpath?

One unit test matches same line 3 times: append is chained 3 times, can we make it that it matches each separate line?

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud