[ 
https://issues.apache.org/jira/browse/GROOVY-7936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King resolved GROOVY-7936.
-------------------------------
       Resolution: Fixed
         Assignee: Paul King
    Fix Version/s: 2.4.8

Nice suggestion. Added. Feel free to create PRs for such changes in the future 
as per:
http://groovy-lang.org/contribute.html

> renaming static imports
> -----------------------
>
>                 Key: GROOVY-7936
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7936
>             Project: Groovy
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.4.7
>         Environment: http://groovy-lang.org/style-guide.html section 15
>            Reporter: tinne
>            Assignee: Paul King
>            Priority: Trivial
>              Labels: documentation
>             Fix For: 2.4.8
>
>
> The Groovy [style guide|http://groovy-lang.org/style-guide.html] introduces 
> the renaming {{import... as}} statement and discusses {{import static}}. It 
> should not leave as an exercise that {{import static... as}} works as well, 
> but simply introduce it by a simple example, as in
> {noformat}
> import static java.lang.Math.abs as mabs
> println mabs(-4)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to