mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
introduce functional variable: encode this (IDEA-174203)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
String string;
|
||||
void useThis() {
|
||||
Function<String, String> stringStringFunction = string -> string;
|
||||
System.out.println(stringStringFunction.apply(string));
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
String string;
|
||||
void useThis() {
|
||||
System.out.println(<selection>this.string</selection>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user