[java] InvalidLogMessageFormat false positive on externally formatted strings #4172
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version: 6.49.0
Rule: InvalidLogMessageFormat
Description:
Incorrectly flags the following LOGGER line with error "InvalidLogMessageFormat: Missing arguments, expected 2 arguments but have 0"
Code Sample demonstrating the issue:
Expected outcome:
PMD reports a violation at line 2, but that's wrong. That's a false positive.
Running PMD through: Gradle
The text was updated successfully, but these errors were encountered: