[jira] [Created] (OFBIZ-11192) Use ‘java.nio.file’ API instead of ‘java.io’ when manipulating files

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-11192) Use ‘java.nio.file’ API instead of ‘java.io’ when manipulating files

Nicolas Malin (Jira)
Mathieu Lirzin created OFBIZ-11192:
--------------------------------------

             Summary: Use ‘java.nio.file’ API instead of ‘java.io’ when manipulating files
                 Key: OFBIZ-11192
                 URL: https://issues.apache.org/jira/browse/OFBIZ-11192
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
    Affects Versions: Trunk
            Reporter: Mathieu Lirzin
            Assignee: Mathieu Lirzin


Since Java 1.7 the {{java.nio.file}} package provides a more modern way to manipulate the filesystem than {{java.io}}. For example the presence of a Path class allows more typesafe manipulation of file and directory names than using plain strings.

Currently OFBiz uses {{java.io}} exclusively but it would improve safety, maintainability and readability to move to the new {{java.nio.file}} API instead.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)