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 when final parameter is Supplier<Throwable> · Issue #3601 · pmd/pmd Closed Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects PMD Version: 7.0.0 Rule: InvalidLogMessageFormat Description: Code Sample demonstrating the issue: import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class Foo { private static final Logger logger = LogManager.getLogger(); public void myMethod(Object id) { try { throw new Exception("aaa"); } catch (final Exception exception) { logger.warn("Object with ID {} had a problem.", () -> String.valueOf(id), () -> exception); } } } Expected outcome: However, PMD reports a violation at the Running PMD through: PMD Plug-in 4.29 for Eclipse Reacted by Bogdan Ilchyshyn 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. |