[ https://issues.apache.org/jira/browse/GIRAPH-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16642177#comment-16642177 ]
Reudismam Rolim de Sousa edited comment on GIRAPH-1204 at 10/8/18 5:17 PM: --------------------------------------------------------------------------- [https://github.com/apache/giraph/pull/79#issuecomment-415889452|https://github.com/apache/giraph/pull/79#issuecomment-415889452] was (Author: reudismam): [https://github.com/apache/giraph/pull/79#issuecomment-415889452|Link to Pull Request] > Avoid FileInputStream and FileOutputStream > ------------------------------------------ > > Key: GIRAPH-1204 > URL: https://issues.apache.org/jira/browse/GIRAPH-1204 > Project: Giraph > Issue Type: Improvement > Reporter: Reudismam Rolim de Sousa > Priority: Minor > Labels: pull-request-available > > 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+. -- This message was sent by Atlassian JIRA (v7.6.3#76005)