Files
kotlin-fork/nj2k/testData/newJ2k/tryWithResource/WithFinally.java
T
2019-04-03 11:24:19 +03:00

16 lines
341 B
Java
Vendored

//file
import java.io.*;
public class C {
void foo() throws IOException {
try(InputStream stream = new ByteArrayInputStream(new byte[10])) {
// reading something
int c = stream.read();
System.out.println(c);
}
finally {
// dispose something else
}
}
}