IDEA-126898 Auto-complete for places where exceptions are expected should favor subclasses of Throwable and should also analyze method body for runtime exceptions thrown.

This commit is contained in:
peter
2018-01-09 23:22:33 +01:00
parent 42a5a44925
commit 1712207c49
6 changed files with 86 additions and 41 deletions
@@ -0,0 +1,8 @@
class IFoo {
/**
* @throws I<caret>
*/
void foo() {
throw new IllegalArgumentException();
}
}
@@ -0,0 +1,5 @@
class Foo {
void foo() throws I<caret> {
throw new IllegalStateException();
}
}