diff options
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java')
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java index cff7a7cf77..291bde5985 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java @@ -11072,7 +11072,7 @@ public void switchExpressionTrailingSwitchLabels(Statement stmt) { } public void switchExpressionMixedCase(ASTNode statement) { this.handle( - IProblem.MixedCase, + IProblem.switchMixedCase, NoArgument, NoArgument, statement.sourceStart, @@ -11080,11 +11080,11 @@ public void switchExpressionMixedCase(ASTNode statement) { } public void switchExpressionsNotBelow12(SwitchExpression switchExpr) { this.handle( - IProblem.SwitchExpressionNotBelow12, - NoArgument, - NoArgument, - switchExpr.sourceStart, - switchExpr.sourceEnd); + IProblem.SwitchExpressionNotBelow12, + NoArgument, + NoArgument, + switchExpr.sourceStart, + switchExpr.sourceEnd); } public void caseStatementWithArrowNotBelow12(CaseStatement caseStatement) { this.handle( @@ -11094,4 +11094,20 @@ public void caseStatementWithArrowNotBelow12(CaseStatement caseStatement) { caseStatement.sourceStart, caseStatement.sourceEnd); } +public void switchExpressionIsPreview(SwitchExpression switchExpr) { + this.handle( + IProblem.SwitchExpressionPreviewDisabled, + NoArgument, + NoArgument, + switchExpr.sourceStart, + switchExpr.sourceEnd); +} +public void caseStatementWithArrowIsPreview(CaseStatement caseStatement) { + this.handle( + IProblem.SwitchCaseLabelWithArrowPreviewDisabled, + NoArgument, + NoArgument, + caseStatement.sourceStart, + caseStatement.sourceEnd); +} } |