Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addToThrows/afterMethodReference.java

15 lines
234 B
Java

// "Add exception to method signature" "true"
class C {
public static void main(String[] args){
I i = C::foo;
}
class Ex extends Exception {}
static void foo() throws Ex {}
interface I {
void f() throws Ex;
}
}