AddExceptionToExistingCatch: supply more concrete intention text

This commit is contained in:
Roman.Ivanov
2019-04-03 11:59:52 +07:00
parent 20d72abee7
commit 7f160662a5
14 changed files with 20 additions and 23 deletions
@@ -1,4 +1,4 @@
// "Add exception to existing catch clause" "true"
// "Replace 'FileNotFoundException' with more generic 'IOException'" "true"
import java.io.*;
@@ -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,4 +1,4 @@
// "Add exception to existing catch clause" "true"
// "Replace 'FileNotFoundException' with more generic 'IOException'" "true"
import java.io.*;
@@ -1,4 +1,4 @@
// "Add exception to existing catch clause" "false"
// "Replace 'FileNotFoundException' with more generic 'IllegalAccessException'" "false"
import java.io.*;
@@ -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,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,4 +1,4 @@
// "Add exception to existing catch clause" "false"
// "Replace 'Exception' with more generic 'Exception'" "false"
import java.util.function.Supplier;
class C {