suggest to extend class from Throwable when it participates in throw statement (IDEA-118215)

This commit is contained in:
Anna Kozlova
2013-12-16 20:08:26 +04:00
parent 05d3b27d0f
commit 27a4b1890d
4 changed files with 47 additions and 0 deletions
@@ -0,0 +1,8 @@
// "Make 'C' extend 'java.lang.Throwable'" "true"
class C extends Throwable {}
class Main {
public static void main(String[] args) {
throw new <caret>C();
}
}
@@ -0,0 +1,8 @@
// "Make 'C' extend 'java.lang.Throwable'" "true"
class C {}
class Main {
public static void main(String[] args) {
throw new <caret>C();
}
}