mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inline class to anonymous in exp lambda (IDEA-180491)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import java.util.function.Function;
|
||||
|
||||
class InlineFromLambda {
|
||||
private static Function<String, Object> func(int p) {
|
||||
return s -> {
|
||||
final String name = s;
|
||||
final int p1 = p;
|
||||
return new Object();
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user