You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/10/13 09:08:05 UTC
[jira] [Closed] (GROOVY-7279) Enhance @Builder annotation with a
@Singular annotation
[ https://issues.apache.org/jira/browse/GROOVY-7279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher closed GROOVY-7279.
-------------------------------------
Resolution: Unresolved
> Enhance @Builder annotation with a @Singular annotation
> -------------------------------------------------------
>
> Key: GROOVY-7279
> URL: https://issues.apache.org/jira/browse/GROOVY-7279
> Project: Groovy
> Issue Type: New Feature
> Components: xforms
> Reporter: Pascal Schumacher
> Priority: Minor
>
> The latest lombok version added a @Singluar annotation to their builder annotation:
> "By annotating one of the parameters (if annotating a static method or constructor with @Builder) or fields (if annotating a class with @Builder) with the @Singular annotation, lombok will treat that builder node as a collection, and it generates 2 'adder' methods instead of a 'setter' method. One which adds a single element to the collection, and one which adds all elements of another collection to the collection."
> source and further details: [http://projectlombok.org/features/Builder.html]
> Maybe something like this would also be a nice enhancement for groovy.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)