mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
23 lines
435 B
Java
23 lines
435 B
Java
import java.io.*;
|
|
|
|
interface ThrowsCloneNotSupportedException {
|
|
void f() throws CloneNotSupportedException;
|
|
}
|
|
|
|
interface ThrowsIOException {
|
|
void f() throws IOException;
|
|
}
|
|
|
|
abstract class ThrowsNothing implements ThrowsCloneNotSupportedException, ThrowsIOException {
|
|
private void foo() {
|
|
f();
|
|
}
|
|
}
|
|
|
|
class Main {
|
|
public static void main(String[] args) {
|
|
ThrowsNothing throwsNothing = null;
|
|
throwsNothing.f();
|
|
}
|
|
}
|