mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
29 lines
480 B
Java
29 lines
480 B
Java
import java.io.*;
|
|
|
|
class Foo {
|
|
|
|
public void read() {
|
|
try {
|
|
final FileInputStream input = new FileInputStream(new File("foo"));
|
|
try {
|
|
}
|
|
finally {
|
|
input.close();
|
|
}
|
|
}
|
|
catch (FileNotFoundException ignored) {
|
|
}
|
|
catch (IOException e) {
|
|
}
|
|
}
|
|
|
|
public void read2() throws Exception {
|
|
try {
|
|
final FileInputStream input = new FileInputStream(new File("foo"));
|
|
}
|
|
finally {
|
|
System.exit(0);
|
|
}
|
|
}
|
|
|
|
} |