mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
ExpectedTypesProvider and CreateLocalFromUsageFix updated for Java 12 (IDEA-204006)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Create local variable 'foo'" "true"
|
||||
class Foo {
|
||||
String test(int i) {
|
||||
return switch (i) {
|
||||
default -> {
|
||||
String foo;
|
||||
break foo;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Create local variable 'foo'" "true"
|
||||
class Foo {
|
||||
String test(int i) {
|
||||
String foo;
|
||||
return switch (i) {
|
||||
default -> foo;
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Create local variable 'foo'" "true"
|
||||
class Foo {
|
||||
String test(int i) {
|
||||
int foo;
|
||||
return switch (foo) {
|
||||
default -> {
|
||||
break i;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create local variable 'foo'" "true"
|
||||
class Foo {
|
||||
String test(int i) {
|
||||
return switch (i) {
|
||||
default -> {
|
||||
break fo<caret>o;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create local variable 'foo'" "true"
|
||||
class Foo {
|
||||
String test(int i) {
|
||||
return switch (i) {
|
||||
default -> fo<caret>o;
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create local variable 'foo'" "true"
|
||||
class Foo {
|
||||
String test(int i) {
|
||||
return switch (f<caret>oo) {
|
||||
default -> {
|
||||
break i;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user