Open
Description
Description
Okay, let`s go
It seems that unclosed threads can lead to resource leaks and additional load on the system.
Below are a few places where the streams are potentially not closed.
Discussion
Motivation
No response
Details
The stream opens here:
and it doesn't close if an exception is thrown:
I assume that closing the stream is not necessary in this situation, however, in order to avoid resource leakage, it seems to me that it is worth using the try-with-resources construction.
is not closed, including function call situations
Identical creation of a stream without its further closure is prescribed