GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [java] InvalidLogMessageFormat detection failing when String.format used in a variable · Issue #3165 · pmd/pmd Closed DescriptionAffects PMD Version: 6.32, also 6.33.0-SNAPSHOT Description: Code Sample demonstrating the issue: <test-code> <description>[java] InvalidLogMessageFormat detection failing when String.format used in a variable</description> <expected-problems>0</expected-problems> <code><![CDATA[ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static java.lang.String.format; class TestInvalidLogMessageFormat { private static final Logger LOGGER = LoggerFactory.getLogger(TestInvalidLogMessageFormat.class); public void testPMD() { String message = String.format("Skipping file %s because no parser could be found", getName()); LOGGER.info(message); } private String getName() { return "the-name"; } } ]]></code> </test-code> Running PMD through: Other Activity
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |