Files
openide/java/java-tests/testData/inspection/duplicateThrows/DuplicateThrows.java
Louis Vignierandintellij-monorepo-bot 65b7f80ce4 [java] Fix quotes in inspection descriptions
GitOrigin-RevId: e227c0708730b61eae81871bb9b1013853d8b4b2
2021-03-19 12:07:46 +00:00

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 {
}
}