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

Add @DelegatesTo to SwingBuilder methods that call setDelegate

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.13
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: