mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
introduce variable from one line lambda transforms body to code block (IDEA-91122)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
void test() {
|
||||
Comparable<String> java = o -> {
|
||||
int c = o.length();
|
||||
return c;
|
||||
};
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
void test() {
|
||||
Comparable<String> java = o -> <selection>o.length()</selection>;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
void test() {
|
||||
Runnable java = () -> {
|
||||
String c = "";
|
||||
System.out.println(c);
|
||||
};
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
void test() {
|
||||
Runnable java = () -> System.out.println(<selection>""</selection>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user