Quantcast
Viewing latest article 2
Browse Latest Browse All 2

Lombok Builder ignores custom setter

so, I have a class with @Builder annotation and a custom setter which have to do more than setting this.authorities

@Setter(AccessLevel.NONE)private Collection<Authority> authorities;public void setAuthorities(Collection<Authority> authorities...

but this setter is ignored while using class builder.

Another thing strange for me is that builder still has authorities method even if I remove my setter. Is it a bug or am I doing something wrong here?


Viewing latest article 2
Browse Latest Browse All 2

Trending Articles