Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4839

Omit parentheses in annotation closure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • parser-antlr2
    • None

    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() {
        ...
      }
      

      Attachments

        Activity

          People

            daniel_sun Daniel Sun
            upsonic Noname
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: