arturobernalg commented on pull request #221:
URL: https://github.com/apache/commons-io/pull/221#issuecomment-846767758


   > Files.newInputstream() to new FileInputStream()
   
   HI @jochenw 
   This is the reason --> 
   'Basically, FileInputStream and FileOutputStream both use a finalizer to 
ensure that the resources are closed.
   Even with programmers do call close() after using FileInputStream, its 
finalize() method will still be called. In other words, still get the side 
effect of the FinalReference being registered at FileInputStream allocation 
time, and also reference processing to reclaim the FinalReference during GC 
(any GC solution has to deal with this).'


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to