Rule: ConsecutiveLiteralAppends (category java-performance)
Description:
If two basic objects are appended, (neither string) then a warning is issued,
which should not be.
Code Sample demonstrating the issue:
evalStr.append('x');// pmd bug: warning: two consecutive times append literal
evalStr.append(0);
evalStr.append(",x");// pmd: no warning: ok
evalStr.append(i);
Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4