A RetroSearch Logo

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

Search Query:

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

[java] LinguisticNaming must ignore setters that returns current type (Builder pattern) · Issue #2462 · pmd/pmd · GitHub

Affects PMD Version:

6.23.0+, 7.0.0

Description:

LinguisticNaming must ignore setters that returns current type (Builder pattern)

Code Sample demonstrating the issue:

public class ObjectBuilder {

   public ObjectBuilder setValue1(int value1) { // This case must be ignored
        return this;
    }

    public ObjectBuilder setValue2(int value2) { // This case must be ignored
        return this;
    }

    public Object build(){
        return null;// immutable instance with values
    }
}

Running PMD through: Maven

mqus, drussov, tdp0516 and inkarkat


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