A RetroSearch Logo

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

Search Query:

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

[java] Lombok getter annotation on enum is not recognized correctly · Issue #527 · pmd/pmd · GitHub

Rule Set:
<ruleref="rulesets/java/design.xml"/>

Description:
A @Getter annotation from Lombok on an enum is not recognized by PMD. The field for which the getter is generated is flagged with the SingularFieldRule.
Setting the @Getter directly on the field works.

Code Sample demonstrating the issue:

@Getter
public enum Foo {
    BAR(1);

    private final int number;

    Foo(final int number) {
        this.number = number;
    }
}

Running PMD through: [Gradle]


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