blob: 42bd3193b1eedf01f4726a91c11a39a07d5db796 (
plain)
1
2
3
4
5
6
7
8
9
|
import java.io.IOException;
public class ValInTryWithResources {
public void whyTryInsteadOfCleanup() throws IOException {
try (java.io.InputStream in = getClass().getResourceAsStream("ValInTryWithResources.class")) {
final java.io.InputStream i = in;
final int j = in.read();
}
}
}
|