Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addCatchBlock/afterInjected.java
Tagir Valeev 92839cf245 [mod-command] AddExceptionToCatchFix: ModCommandAction; injection test
GitOrigin-RevId: 9a3ab90be0420b79f913c96b0d0101e538e6fca6
2023-05-10 18:16:50 +00:00

16 lines
424 B
Java

// "Add 'catch' clause(s)" "true-preview"
import org.intellij.lang.annotations.Language;
class X {
@Language("JAVA") String java = """
class Cls {
{
try {
} catch (Exception e) {
<selection><caret>throw new RuntimeException(e);</selection>
}
}
}
""";
}