Is try-with-resource not safe when declaring multiple effectively final resources?

Since Java 9 we can use effectively final variables in try-with-resources. The example below presents a situation where one of the resources initialization throws an exception. public static void …

try-finally with close auto-refactoring to try-with-resources with codestyle/checkstyle

I am working on a codebase that has recently migrated from Java 6 to Java 7. I would like to replace constructions like this: Connection conn = null; try{ conn = new Connection(); … } catch(…