groovy
  1. groovy
  2. GROOVY-4839

Omit parentheses in annotation closure

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.0
    • Component/s: parser-antlr
    • Labels:
      None
    • Number of attachments :
      0

      Description

      It would be great to have a possibility to omit parentheses in closure annotations like this:

      @Require({it > 2})
      def myMethod() {
        ...
      }
      

      and after change:

      @Require {it > 2}
      def myMethod() {
        ...
      }
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Noname
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: