mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
extract class: do not qualify enums in switches (IDEA-76587 )
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
public class Extracted {
|
||||
static void foo(Test t) {
|
||||
switch (p) {
|
||||
case FRED:
|
||||
break;
|
||||
|
||||
case GEORGE:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
public class Test {
|
||||
|
||||
}
|
||||
|
||||
enum Person {
|
||||
FRED, GEORGE;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
public class Test {
|
||||
|
||||
static void foo(Test t) {
|
||||
switch (p) {
|
||||
case FRED:
|
||||
break;
|
||||
|
||||
case GEORGE:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum Person {
|
||||
FRED, GEORGE;
|
||||
}
|
||||
Reference in New Issue
Block a user