mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
introduce functional: convert to lambda when applicable (IDEA-174018)
This commit is contained in:
+1
-5
@@ -1,11 +1,7 @@
|
||||
class Test {
|
||||
void foo(String name) {
|
||||
System.out.println("Hello, ");
|
||||
Runnable runnable = new Runnable() {
|
||||
public void run() {
|
||||
System.out.println(name);
|
||||
}
|
||||
};
|
||||
Runnable runnable = () -> System.out.println(name);
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user