mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-27 04:22:42 +07:00
GitOrigin-RevId: e227c0708730b61eae81871bb9b1013853d8b4b2
33 lines
829 B
Java
33 lines
829 B
Java
import java.io.*;
|
|
|
|
class X {
|
|
void f() throws
|
|
<warning descr="Duplicate throws">Exception</warning>,
|
|
Exception {
|
|
}
|
|
void f2() throws
|
|
Exception,
|
|
<warning descr="There is a more general exception, 'java.lang.Exception', in the throws list already.">IllegalArgumentException</warning> {
|
|
}
|
|
void f3() throws
|
|
FileNotFoundException,
|
|
EOFException {
|
|
}
|
|
|
|
public void TTT() throws
|
|
<warning descr="Duplicate throws">FileNotFoundException</warning>,
|
|
<warning descr="Duplicate throws">EOFException</warning>,
|
|
FileNotFoundException,
|
|
EOFException {
|
|
}
|
|
|
|
/**
|
|
* Execute.
|
|
*
|
|
* @throws IOException if file write is failed
|
|
* @throws Throwable if any other problem occurred
|
|
*/
|
|
void execute() throws IOException, Throwable {
|
|
|
|
}
|
|
} |