ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reudismam <...@git.apache.org>
Subject [GitHub] ant pull request #77: Avoid FileInputStream and FileOutputStream.
Date Sun, 04 Nov 2018 16:34:28 GMT
GitHub user reudismam opened a pull request:

    https://github.com/apache/ant/pull/77

    Avoid FileInputStream and FileOutputStream.

    Avoid FileInputStream and FileOutputStream. These classes override the finalize method.
As a result, their objects are only cleaned when the garbage collector performs a sweep. Since
Java 7, programmers can use Files.newInputStream and Files.newOutputStream instead of FileInputStream
and FileOutputStream to improve performance as recommended in this Java JDK bug-report.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/reudismam/ant newstream

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ant/pull/77.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #77
    
----
commit 0950db58654ff0f853dcfd7110f7d27500acbf5b
Author: = <reudismam@...>
Date:   2018-11-04T16:31:37Z

    Avoid FileInputStream and FileOutputStream.

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message