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] ArrayIsStoredDirectly false positive with field access · Issue #1185 · pmd/pmd Closed Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects PMD Version: 6.4.0 Rule: ArrayIsStoredDirectly Description: False positive when passing field, that shares the same name as input parameter, to constructor of different object. Code Sample demonstrating the issue: class TestArrayIsStoredDirectly { private final boolean[] a; private final foo b; private TestArrayIsStoredDirectly(boolean[] a) { this.a = null; this.a = a.clone(); // no violation, it doesn't matter what the state of this.a is this.b = new TestArrayIsStoredDirectly(a); // no violation this.b = new TestArrayIsStoredDirectly(this.a); // false positive violation here } } Rule Property: allowPrivate=false Running PMD through: [CLI | Maven] 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. |