mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Support local classes
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Replace 'switch' with 'if'" "true"
|
||||
class X {
|
||||
void test(int i) {
|
||||
if (i == 1) {
|
||||
class Foo {
|
||||
}
|
||||
System.out.println(new Foo());
|
||||
} else if (i == 2) {
|
||||
class Foo {
|
||||
}
|
||||
System.out.println("2" + new Foo());
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Replace 'switch' with 'if'" "true"
|
||||
class X {
|
||||
void test(int i) {
|
||||
if (i == 1) {
|
||||
class Foo {
|
||||
}
|
||||
System.out.println(new Foo());
|
||||
} else if (i == 2) {
|
||||
System.out.println("2");
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Replace 'switch' with 'if'" "true"
|
||||
class X {
|
||||
void test(int i) {
|
||||
swi<caret>tch(i) {
|
||||
case 1:
|
||||
class Foo{}
|
||||
System.out.println(new Foo());
|
||||
break;
|
||||
case 2:
|
||||
System.out.println("2"+new Foo());
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Replace 'switch' with 'if'" "true"
|
||||
class X {
|
||||
void test(int i) {
|
||||
swi<caret>tch(i) {
|
||||
case 1:
|
||||
class Foo{}
|
||||
System.out.println(new Foo());
|
||||
break;
|
||||
case 2:
|
||||
System.out.println("2");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user