Mutable @Singular List

446 views
Skip to first unread message

Zach Holmes

unread,
Sep 26, 2016, 7:32:24 PM9/26/16
to Project Lombok
It seems to be impossible to add to a List when using the @Singular annotation with @Builder. Is there something I'm missing?

Daniel López

unread,
Sep 27, 2016, 3:44:14 AM9/27/16
to project...@googlegroups.com
Probably :),

What is exactly your issue? It seems to be working fine for me.
D.

2016-09-26 23:23 GMT+02:00 Zach Holmes <zho...@combustiongroup.com>:
It seems to be impossible to add to a List when using the @Singular annotation with @Builder. Is there something I'm missing?

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombok+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roel Spilker

unread,
Sep 27, 2016, 8:36:28 AM9/27/16
to project...@googlegroups.com
If you mean that is impossible to add items to a list in an object created by builder.build(), then that's on purpose; Builder is used to create immutable objects.
Reply all
Reply to author
Forward
0 new messages