Java 9 Using effectively-final variables in the try-with-resources
In Java 9 try-with-resources statement has been improved. Now if you already have final or effectively final resource you can use it in try-with-resources statement without need to declare a dummy variable.