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

15 lines
231 B
Java

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