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 false positive on externally formatted strings · Issue #4172 · pmd/pmd Closed Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects 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: String msg = "Got kafka msg, headers=%s, body=%s".formatted(headers, new String(body, UTF_8)); LOGGER.info(msg); return msg; Expected outcome: PMD reports a violation at line 2, but that's wrong. That's a false positive. Running PMD through: Gradle Activity
MetadataMetadataAssigneesLabelsa:false-positivePMD flags a piece of code that is not problematic TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| 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. |