149ea16f5c
#KT-4488 Fixed
16 lines
329 B
Java
16 lines
329 B
Java
//file
|
|
import java.io.*;
|
|
|
|
public class C {
|
|
void foo() throws IOException {
|
|
try(InputStream stream = new FileInputStream("foo")) {
|
|
// reading something
|
|
int c = stream.read();
|
|
System.out.println(c);
|
|
}
|
|
finally {
|
|
// dispose something else
|
|
}
|
|
}
|
|
}
|