Debian Codegraph @

framework/tests/all-systems/ResourceVariables.java

raw
1 import java.io.*;
2
3 // Tests related to resource variables in try-with-resources statements.
4
5 class ResourceVariables {
6 void foo(InputStream arg) {
7 try (InputStream in = arg) {
8 } catch (IOException e) {
9 }
10 }
11 }