mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Add 'catch' block after incomplete try (final piece of IDEA-200560)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Add 'catch' clause(s)" "true"
|
||||
class Foo {
|
||||
void test(String s) {
|
||||
try {
|
||||
System.out.println(s);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Add 'catch' clause(s)" "true"
|
||||
class Foo {
|
||||
void test(String s) {
|
||||
try {
|
||||
System.out.println(Integer.parseInt(s));
|
||||
} catch (NumberFormatException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Add 'catch' clause(s)" "true"
|
||||
class Foo {
|
||||
void test(String s) {
|
||||
try {
|
||||
System.out.println(s);
|
||||
}<caret>
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Add 'catch' clause(s)" "true"
|
||||
class Foo {
|
||||
void test(String s) {
|
||||
try {
|
||||
System.out.println(Integer.parseInt(s));
|
||||
}<caret>
|
||||
}
|
||||
}
|
||||
+1
@@ -3,6 +3,7 @@ class Test {
|
||||
void foo() {
|
||||
try {
|
||||
} finally {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user