Method name fixed
This commit is contained in:
@@ -825,7 +825,7 @@ public class JetControlFlowProcessor {
|
||||
}
|
||||
}
|
||||
builder.bindLabel(doneLabel);
|
||||
boolean isWhenExhaust = WhenChecker.isWhenExhaust(expression, trace);
|
||||
boolean isWhenExhaust = WhenChecker.isWhenExhaustive(expression, trace);
|
||||
if (!hasElseOrIrrefutableBranch && !isWhenExhaust) {
|
||||
trace.report(NO_ELSE_IN_WHEN.on(expression));
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ import java.util.Set;
|
||||
* @author svtk
|
||||
*/
|
||||
public class WhenChecker {
|
||||
public static boolean isWhenExhaust(@NotNull JetWhenExpression expression, @NotNull BindingTrace trace) {
|
||||
public static boolean isWhenExhaustive(@NotNull JetWhenExpression expression, @NotNull BindingTrace trace) {
|
||||
JetExpression subjectExpression = expression.getSubjectExpression();
|
||||
if (subjectExpression == null) return false;
|
||||
JetType type = trace.get(BindingContext.EXPRESSION_TYPE, subjectExpression);
|
||||
|
||||
Reference in New Issue
Block a user