groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-6711) Make java.nio.file.Files a DGM class
Date Sun, 05 Jul 2015 15:39:04 GMT

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

Pascal Schumacher updated GROOVY-6711:
--------------------------------------
    Reporter: Guillaume Laforge  (was: Guillaume Delcroix)

> Make java.nio.file.Files a DGM class
> ------------------------------------
>
>                 Key: GROOVY-6711
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6711
>             Project: Groovy
>          Issue Type: Improvement
>          Components: groovy-jdk
>            Reporter: Guillaume Laforge
>
> The java.nio.file.Files class contains only DGM-friendly static methods taking a "self"
first parameter, just like Groovy's own DGM class methods.
> Instead of having to do
> {code}
> Files.delete(path)
> {code}
> we could support out of the box:
> {code}
> path.delete()
> {code}
> There are tons of useful methods such as: copy(), delete(), isHidden(), etc.
> We might have to tweak methods like newInputStream() added already in the NIO2 module
for consistency and de-duplication.



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

Mime
View raw message