Use a Try-With-Resources Statement to Safely Handle Closeable Resources 

es.uniovi.reflection.analyses.cmu.err54


We detect when a local variable that implements java.lang.AutoCloseable is not initialized in a try-with-resources statement, and the code may throw an exception before calling close. In that case, a try-with-resources statement is advised to the programmer.

Computational Reflection Research Group
05-08-2024 22:58
Reliability
Local Variable Definition