mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +07:00
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:
committed by
intellij-monorepo-bot
parent
986f038427
commit
6e19d89001
@@ -0,0 +1,8 @@
|
||||
// "Replace with 'Integer ignored1'" "true"
|
||||
class Test {
|
||||
void test(Integer n, int ignored) {
|
||||
switch (n) {
|
||||
case Integer ignored1: break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Replace with 'Integer ignored1'" "true"
|
||||
class Test {
|
||||
void test(Integer n) {
|
||||
switch (n) {
|
||||
case Integer ignored1:
|
||||
int ignored = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Replace with 'Integer ignored'" "true"
|
||||
class Test {
|
||||
void test(Integer n) {
|
||||
switch (n) {
|
||||
case Integer ignored: break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Replace with 'Integer ignored1'" "true"
|
||||
class Test {
|
||||
void test(Integer n, int ignored) {
|
||||
switch (n) {
|
||||
case Integer<caret>: break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Replace with 'Integer ignored1'" "true"
|
||||
class Test {
|
||||
void test(Integer n) {
|
||||
switch (n) {
|
||||
case Integer<caret>:
|
||||
int ignored = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Replace with 'Integer ignored'" "true"
|
||||
class Test {
|
||||
void test(Integer n) {
|
||||
switch (n) {
|
||||
case Integer<caret>: break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user