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] StringToString doesn't trigger on `Bar.class.getSimpleName().toString()` · Issue #3437 · pmd/pmd Closed Labels a:false-negativePMD doesn't flag a problematic piece of codein:type-resolutionAffects the type resolution code Milestone DescriptionAffects PMD Version: 6.37 Rule: Please provide the rule name and a link to the rule documentation: StringToString Description: Code Sample demonstrating the issue: public class Foo { @Override public String toString() { return new StringJoiner(",", Bar.class.getSimpleName().toString() + "[", "]"); } } Expected outcome: PMD should report a violation at line
but doesn't. This is a false-negative. This seems to be documented in the Javadoc of the rule
Is this limitation something that could be addressed with an additional Rule using XPath 2.0 ? Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other] Activity
MetadataMetadataAssigneesLabelsa:false-negativePMD doesn't flag a problematic piece of codein:type-resolutionAffects the type resolution code 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. |