IDEA-277338 - fixed the description for malformed ref expressions which can be replaced with type pattern in switch, added the quick-fix

GitOrigin-RevId: c34d26c8dd7f3dfb079adeb49811d64e1bd093fa
This commit is contained in:
Ilyas Selimov
2021-09-08 17:43:18 +07:00
committed by intellij-monorepo-bot
parent 986f038427
commit 6e19d89001
16 changed files with 226 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
// "Replace with 'Integer ignored1'" "true"
class Test {
void test(Integer n, int ignored) {
switch (n) {
case Integer ignored1: break;
}
}
}

View File

@@ -0,0 +1,10 @@
// "Replace with 'Integer ignored1'" "true"
class Test {
void test(Integer n) {
switch (n) {
case Integer ignored1:
int ignored = 1;
break;
}
}
}

View File

@@ -0,0 +1,8 @@
// "Replace with 'Integer ignored'" "true"
class Test {
void test(Integer n) {
switch (n) {
case Integer ignored: break;
}
}
}

View File

@@ -0,0 +1,8 @@
// "Replace with 'Integer ignored1'" "true"
class Test {
void test(Integer n, int ignored) {
switch (n) {
case Integer<caret>: break;
}
}
}

View File

@@ -0,0 +1,10 @@
// "Replace with 'Integer ignored1'" "true"
class Test {
void test(Integer n) {
switch (n) {
case Integer<caret>:
int ignored = 1;
break;
}
}
}

View File

@@ -0,0 +1,8 @@
// "Replace with 'Integer ignored'" "true"
class Test {
void test(Integer n) {
switch (n) {
case Integer<caret>: break;
}
}
}