introduce functional: convert to lambda when applicable (IDEA-174018)

This commit is contained in:
Anna Kozlova
2017-06-07 19:04:04 +03:00
parent d65ff6ad81
commit 101ae53c3b
7 changed files with 26 additions and 36 deletions
@@ -2,11 +2,7 @@ import java.util.function.Supplier;
class Test {
void foo() {
Supplier<String> supplier = new Supplier<String>() {
public String get() {
return "Hello, world";
}
};
System.out.println(supplier.get());
Supplier<String> stringSupplier = () -> "Hello, world";
System.out.println(stringSupplier.get());
}
}