A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/2196 below:

[java] InvalidLogMessageFormat does not detect extra parameters when no placeholders · Issue #2196 · pmd/pmd · GitHub

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