[ https://issues.apache.org/jira/browse/GROOVY-8456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-8456. ----------------------------- > @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 > Assignee: Paul King > Priority: Major > Fix For: 2.5.0-beta-3 > > > 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)