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

Add @DelegatesTo to SwingBuilder methods that call setDelegate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.13
    • None
    • None

    Description

      4 mehtods in SwingBuilder (edt, doLater, doOutside, build) call setDelegate(this) on their closure params. Could each have the param annotated with @DelegatesTo(SwingBuilder)?

      Ex:

          public Object build(@DelegatesTo(SwingBuilder) Closure c) {
              c.setDelegate(this)
              return c.call()
          }
      

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              emilles Eric Milles
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: