mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
AddExceptionToExistingCatch: supply more concrete intention text
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
// "Replace 'C' with more generic 'A'" "true"
|
||||
import java.io.Exception;
|
||||
|
||||
class A extends Exception {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
// "Replace 'C | D | B' with 'A'" "true"
|
||||
import java.io.IOException;
|
||||
|
||||
class A extends Exception {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
// "Replace 'IndexOutOfBoundsException' with 'IOException'" "true"
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
// "Replace 'C' with more generic 'A'" "true"
|
||||
import java.io.Exception;
|
||||
|
||||
class A extends Exception {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
// "Replace 'C | D | B' with 'A'" "true"
|
||||
import java.io.IOException;
|
||||
|
||||
class A extends Exception {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
// "Replace 'IndexOutOfBoundsException' with 'IOException'" "true"
|
||||
import java.io.File;
|
||||
|
||||
class Test {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
// "Replace 'FileNotFoundException' with more generic 'IOException'" "true"
|
||||
import java.io.*;
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
// "Replace 'E1' with more generic 'E'" "true"
|
||||
class C {
|
||||
static class E extends Exception { }
|
||||
static class E1 extends E { }
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
// "Replace 'FileNotFoundException' with more generic 'IOException'" "true"
|
||||
import java.io.*;
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "false"
|
||||
// "Replace 'FileNotFoundException' with more generic 'IllegalAccessException'" "false"
|
||||
import java.io.*;
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "true"
|
||||
// "Replace 'E1' with more generic 'E'" "true"
|
||||
class C {
|
||||
static class E extends Exception { }
|
||||
static class E1 extends E { }
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "false"
|
||||
// "Replace 'Exception' with more generic 'Exception'" "false"
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class C {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add exception to existing catch clause" "false"
|
||||
// "Replace 'Exception' with more generic 'Exception'" "false"
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class C {
|
||||
|
||||
Reference in New Issue
Block a user