#1494 [java] SingularField: lombok.Data false positive

PMD-5.4.3
closed
None
PMD
3-Major
Bug
5.4.2
SingularField
2016-11-02
2016-06-14
Geniy00
No

Should PMD take into accaunt using of lombok?

import lombok.Data;

@Data
public class MyClass {

    private String field1;

    public MyClass(String field1) {
        this.field1 = field1;
    }
}

MyClass.java:8: Perhaps 'field1' could be replaced by a local variable.

Discussion

  • Andreas Dangel

    Andreas Dangel - 2016-11-02
    • summary: SingularField lombok.Data false positive --> [java] SingularField: lombok.Data false positive
    • Milestone: New Tickets --> PMD-5.4.3
     
  • Andreas Dangel

    Andreas Dangel - 2016-11-02
    • status: open --> closed
    • assigned_to: Andreas Dangel
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks