inline into method reference: keep with multiple return statements

This commit is contained in:
Anna Kozlova
2017-11-13 09:55:55 +01:00
parent 9d49a5ef51
commit 886eae4f67
3 changed files with 7 additions and 2 deletions
@@ -2,10 +2,14 @@ import java.util.function.Supplier;
class Test {
{
Supplier<String> sup = () -> null;
Supplier<String> sup = () -> {
if (true) return null;
return null;
};
}
private String get() {
if (true) return null;
return null;
}
}