Affects PMD Version: 6.20.0
Rule: InvalidLogMessageFormat
Description:
If the format string has no placeholders, PMD does not detect extra parameters.
Code Sample demonstrating the issue:
logger.warn("foo {}", "flibble", "moo", "blah", "blah"); // PMD flags this
logger.warn("foo", "flibble", "moo", "blah", "blah"); // PMD doesn't flag this
Running PMD through: Maven
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