krzysztofslusarski / continuous-async-profiler

Spring boot library for continuous profiling with async-profiler
Apache License 2.0
30 stars 5 forks source link

Close Files opened streams to prevent resource leakage #6

Closed wyhasany closed 3 years ago

wyhasany commented 3 years ago

as documentation says:

This method must be used within a try-with-resources statement or similar control structure to ensure that the stream's open directories are closed promptly after the stream's operations have completed

we need to close Files related streams