mplushnikov / lombok-intellij-plugin

Lombok Plugin for IntelliJ IDEA
Apache License 2.0
3.11k stars 634 forks source link

Return @NotNull annotation after code auto-completion #818

Open 15klli opened 4 years ago

15klli commented 4 years ago

Short description

when I input dto.getId() and click ctrl+alt+v, the code beteween @NotNull Integer id = dto.getId()

@Data
public class Dto{
@NotNull
private Integer id;
}

Expected behavior

I don't need @NotNull at the beginning of the statement.

Version information

Simple Demo

@Data
public class TestDto {

    @NotNull(message = "d")
    private String hhh;

    @NotNull
    private String h;

    public static void main(String[] args) {
        @NotNull String h = new TestDto().getH();
    }
}
Lekanich commented 4 years ago

@15klli Lombok doesn't have annotation "NotNull" only "NonNull". Why do you think that that completion is the result of Lombok plugin?