Make predicate non-nullable

This commit is contained in:
Alexey Sedunov
2013-04-12 20:46:59 +04:00
parent 216f865658
commit 89030d1ced
2 changed files with 11 additions and 6 deletions
@@ -46,7 +46,7 @@ public class BranchedUnfoldingUtils {
}
private static JetExpression getOutermostLastBlockElement(@Nullable JetExpression expression) {
return (JetExpression) JetPsiUtil.getOutermostLastBlockElement(expression, null);
return (JetExpression) JetPsiUtil.getOutermostLastBlockElement(expression, JetPsiUtil.ANY_JET_ELEMENT);
}
private static void unfoldAssignmentToIf(@NotNull JetBinaryExpression assignment) {