[
https://issues.apache.org/jira/browse/UIMA-5923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16708988#comment-16708988
]
Joern Kottmann commented on UIMA-5923:
--------------------------------------
The original code in LocalInstallationAgent did that in an if statement which
was always executed, unless an IOException was thrown by copyFile. copyFile
itself can only return true (never false) or throw an IOException.
It is better to use Path these days [1] and File.toPath allows easy migration.
Also we should not have our users use this, the Java methods are better and
always work, even without UIMA as a dependency.
[1] https://stackoverflow.com/a/26658436
> Deprecate methods in FileUtil and FileUtils which duplicate
> java.nio.file.Files
> -------------------------------------------------------------------------------
>
> Key: UIMA-5923
> URL: https://issues.apache.org/jira/browse/UIMA-5923
> Project: UIMA
> Issue Type: Improvement
> Components: UIMA
> Reporter: Joern Kottmann
> Assignee: Marshall Schor
> Priority: Trivial
> Attachments: uima-5923.patch
>
>
> These methods are now part of Java 8 and it would be better to use these
> instead. Since the methods are part of the public API they need to be
> deprecated first before they can be removed. This will give our users some
> time to migrate to the Java 8 methods as well.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)