Quantcast
Channel: Lombok Builder ignores custom setter - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Lombok Builder ignores custom setter

$
0
0

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 all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>