You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/02/01 23:19:05 UTC

[jira] [Closed] (GROOVY-7936) renaming static imports

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

Paul King closed GROOVY-7936.
-----------------------------

> 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.15#6346)