[ https://issues.apache.org/jira/browse/GROOVY-8456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King updated GROOVY-8456: ------------------------------ Summary: @MapConstructor could provide a noArg flag (was: @MapConstructor could provide a noArgs flag) > @MapConstructor could provide a noArg flag > ------------------------------------------ > > Key: GROOVY-8456 > URL: https://issues.apache.org/jira/browse/GROOVY-8456 > Project: Groovy > Issue Type: Bug > Reporter: Paul King > Priority: Major > > This could provide a noArgs constructor which called the Map-based > constructor with an empty Map, e.g.: > {code} > @MapConstructor(noArg=true) > class Foo { ... } > {code} > would in addition to the Map-based constructor, also provide this: > {code} > Foo() { this([:]) } > {code} > This is currently part of what @Immutable provides. -- This message was sent by Atlassian JIRA (v7.6.3#76005)