mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-16 08:39:59 +07:00
introduce functional: combine extract method & introduce
IDEA-174011; IDEA-174021
This commit is contained in:
+3
-3
@@ -1,14 +1,14 @@
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class Test {
|
||||
void foo() {
|
||||
void foo() {
|
||||
if (true) {
|
||||
Supplier<String> stringSupplier = new Supplier<String>() {
|
||||
Supplier<String> supplier = new Supplier<String>() {
|
||||
public String get() {
|
||||
return "Hello, world";
|
||||
}
|
||||
};
|
||||
System.out.println(stringSupplier.get());
|
||||
System.out.println(supplier.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user