mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
25 lines
554 B
Java
25 lines
554 B
Java
import java.io.File;
|
|
import java.io.IOException;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
public class Plain {
|
|
@Nullable
|
|
public File oper1() {
|
|
return new File("filo");
|
|
}
|
|
|
|
public void oper2(int p) {
|
|
try {
|
|
File f = oper1();
|
|
f.createNewFile();
|
|
} catch (IOException ioe) {
|
|
ioe.printStackTrace();
|
|
} cat<selection><caret>ch (NullPointerException npe) {
|
|
npe.printStackTrace();
|
|
} cat</selection>ch (Error err) {
|
|
err.printStackTrace();
|
|
} catch (Throwable t) {
|
|
t.printStackTrace();
|
|
}
|
|
}
|
|
} |