Eric Milles created GROOVY-8376:
-----------------------------------

             Summary: Add @DelegatesTo to SwingBuilder methods that call 
setDelegate
                 Key: GROOVY-8376
                 URL: https://issues.apache.org/jira/browse/GROOVY-8376
             Project: Groovy
          Issue Type: Improvement
            Reporter: Eric Milles


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:
{code}
    public Object build(@DelegatesTo(SwingBuilder) Closure c) {
        c.setDelegate(this)
        return c.call()
    }
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to