inline: expand expression lambda to code block for return-inline (IDEA-180888)

This commit is contained in:
Anna Kozlova
2017-11-13 09:55:54 +01:00
parent 613fe3f67f
commit de923b346c
4 changed files with 50 additions and 3 deletions
@@ -0,0 +1,16 @@
import java.util.Comparator;
class InlineLambda {
private static int compare(Integer i, Integer j) {
if (i > j) {
return 1;
}
if (j > i) {
return -1;
}
return 0;
}
private static Comparator<Integer> COMP = (o1, o2) -> com<caret>pare(o1, o2);
}