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

renaming static imports

    XMLWordPrintableJSON

    Details

      Description

      The Groovy style guide 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

      import static java.lang.Math.abs as mabs
      println mabs(-4)
      

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              tinne tinne
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: