rovarga opened a new pull request, #2649:
URL: https://github.com/apache/karaf/pull/2649

   These two classes have a finalizer in Java 12, hence they are an
   unnecessary burden for GC.
   
   Use:
   - Files.newInputStream() instead of FileInputStream
   - Files.newBufferedReader() when we end up converting to a Writer
   - Files.readAllBytes() if we end up reading the stream
   - Files.copy() if we are copying the stream to another stream or file
   - Files.writeString() when we are emitting just a plain string
   - Files.newOutputStream() instead of FileOutputStream
   - Files.newBufferedReader() when we end up conerting to a Writer
   
   Signed-off-by: Robert Varga <[email protected]>
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to