You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/01/22 14:21:00 UTC
[jira] [Created] (GROOVY-8456) @MapConstructor could provide a
noArgs flag
Paul King created GROOVY-8456:
---------------------------------
Summary: @MapConstructor could provide a noArgs flag
Key: GROOVY-8456
URL: https://issues.apache.org/jira/browse/GROOVY-8456
Project: Groovy
Issue Type: Bug
Reporter: Paul King
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)