You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2017/01/19 12:51:26 UTC

[jira] [Closed] (GROOVY-4839) Omit parentheses in annotation closure

     [ https://issues.apache.org/jira/browse/GROOVY-4839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Sun closed GROOVY-4839.
------------------------------
       Resolution: Won't Fix
         Assignee: Daniel Sun
    Fix Version/s:     (was: 4.0)

annotations will be allowed to apply to closure, so the parentheses are necessary

> Omit parentheses in annotation closure
> --------------------------------------
>
>                 Key: GROOVY-4839
>                 URL: https://issues.apache.org/jira/browse/GROOVY-4839
>             Project: Groovy
>          Issue Type: Improvement
>          Components: parser-antlr
>            Reporter: Noname
>            Assignee: Daniel Sun
>            Priority: Minor
>
> It would be great to have a possibility to omit parentheses in closure annotations like this:
> {code}
> @Require({it > 2})
> def myMethod() {
>   ...
> }
> {code}
> and after change:
> {code}
> @Require {it > 2}
> def myMethod() {
>   ...
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)