Method name fixed

This commit is contained in:
Andrey Breslav
2012-05-23 14:33:08 +04:00
parent ca902799b6
commit 59b533ccd3
2 changed files with 2 additions and 2 deletions
@@ -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);