Relates :
|
|
Relates :
|
A DESCRIPTION OF THE PROBLEM : Suggesting to modify javac to allow try-with-resources without a variable declaration, causing an implicit variable declaration to be inserted by the complier. This can be helpful in reducing code when dealing with resources that are opened and closed, but where the resource itself need not be exposed. Example: try (new SomethingToClose()) { ... do something while something to close is open }
|