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] UnnecessaryBoxing: False negative when another overload takes an unrelated reference type · Issue #7134 · pmd/pmd Open DescriptionAffects PMD Version: 7.17.0 to 7.28.0 Rule: UnnecessaryBoxing Description: #5971 (7.17.0, the fix for #5948) added an overload check to this rule. Its last clause suppresses the warning for any overload with a reference type at the argument position: pmd/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/codestyle/UnnecessaryBoxingRule.java Lines 255 to 264 in 5c9271c
PMD 7.16.0 reports line 6. 7.17.0 and 7.28.0 don't. Code Sample demonstrating the issue: class Example { static void call(int value) { } static void call(String value) { } void test(Integer value) { call(value.intValue()); } } JDK calls are affected the same way, e.g. Expected outcome: PMD should report a violation at line 6, but doesn't. This is a false-negative. Running PMD through: Other (PmdAnalysis API) ActivityMetadataMetadataAssigneesLabelsNo labels 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. |