A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/270 below:

[java] LoD false positive · Issue #270 · pmd/pmd · GitHub

Please, prefix the report title with the language it applies to within brackets, such as [java] or [apex]. If not specific to a language, you can use [core]

Rule Set: java-coupling/LawOfDemeter

Description:

LoD reports a false positive when method calls are placed between the var declaration and assignment.

Code Sample demonstrating the issue:

public class Foo {
    public void example() {
        String something;
        C c = new C();
        c.doIt();
        something = "no worries";
    }
}

Running PMD through: Any

Placeholder report for PR #266


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4