mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
Postfix completion: apply throw template on Throwable only
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
o.throw<caret>
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
throw o;<caret>
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
import java.lang.RuntimeException;
|
||||
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
o.throw<caret>
|
||||
void m() {
|
||||
new RuntimeException("error").throw<caret>
|
||||
}
|
||||
}
|
||||
+4
-2
@@ -1,5 +1,7 @@
|
||||
import java.lang.RuntimeException;
|
||||
|
||||
public class Foo {
|
||||
void m(Object o) {
|
||||
throw o;<caret>
|
||||
void m() {
|
||||
throw new RuntimeException("error");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user