Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addRuntimeExceptionToThrows/beforeInherit1.java
Tagir Valeev f94d4a27d9 [java-inspections] AddExceptionToThrowsFix, AddRuntimeExceptionToThrowsAction: mod-command
Part of IDEA-322693 Migrate as much as possible Java intentions and quick-fixes to ModCommand API

GitOrigin-RevId: 4ae648a956c9a33b5649aa6ffff99a6fa9a18f71
2023-10-24 16:54:37 +00:00

15 lines
225 B
Java

// "Add 'throws RuntimeException' to method signature" "true-preview"
class a {
int f() throws NullPointerException {
}
class b extends a {
int f() {
throw new RuntimeException()<caret>;
}
}
}