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] LawOfDemeter: False positive with 'this' pointer · Issue #2174 · pmd/pmd Closed Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects PMD Version: Rule: Description: Code Sample demonstrating the issue: package pmdtests; public class Foo { private final int i; public Foo(int i) { this.i = i; } public void meth() { System.out.println(this.i); // wrong violation: method chain calls System.out.println(super.i); // wrong violation: method chain calls System.out.println(i); // no violation } public void method(Foo this) { System.out.println(this.i); // wrong violation: method chain calls } public void method(Foo this, String... args) { System.out.println(this.i); // wrong violation: method chain calls for (String arg: args) System.out.println(arg); } } Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other] 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. |