giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reudismam <>
Subject [GitHub] giraph issue #79: Prefers OutputStream instead of FileOutputStream to improv...
Date Mon, 08 Oct 2018 17:18:33 GMT
Github user reudismam commented on the issue:
    FileInputStream and FileOutputStream 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. finalize method is deprecated in Java 9+.


View raw message