diff options
author | Manoj Palat | 2019-02-08 04:46:52 +0000 |
---|---|---|
committer | Manoj Palat | 2019-02-08 04:46:52 +0000 |
commit | 2cb6bbde59f397e516d3e3059008987e0884d3f5 (patch) | |
tree | 5720d46c770e02c06ee8f1ce6b2f43848d334641 | |
parent | aaf50a6f0734f36f46875ea57e9d7e4952f24492 (diff) | |
download | eclipse.jdt.core-2cb6bbde59f397e516d3e3059008987e0884d3f5.tar.gz eclipse.jdt.core-2cb6bbde59f397e516d3e3059008987e0884d3f5.tar.xz eclipse.jdt.core-2cb6bbde59f397e516d3e3059008987e0884d3f5.zip |
This reverts commit aaf50a6f0734f36f46875ea57e9d7e4952f24492.
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java index 8aaf34e03d..ef5bf2652f 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java @@ -9555,9 +9555,9 @@ protected void consumeSwitchExpression() { SwitchExpression s = (SwitchExpression) this.astStack[this.astPtr--]; if (!this.parsingJava12Plus) { - problemReporter().previewFeatureNotSupported(s.sourceStart, s.sourceEnd, "Switch Expressions", CompilerOptions.VERSION_12); //$NON-NLS-1$ + problemReporter().previewFeatureNotSupported(s.sourceStart, s.sourceEnd, "Switch Expression", CompilerOptions.VERSION_12); //$NON-NLS-1$ } else if (!this.options.enablePreviewFeatures) { - problemReporter().previewFeatureNotEnabled(s.sourceStart, s.sourceEnd, "Switch Expressions"); //$NON-NLS-1$ + problemReporter().previewFeatureNotEnabled(s.sourceStart, s.sourceEnd, "Switch Expression"); //$NON-NLS-1$ } else { if (this.options.isAnyEnabled(IrritantSet.PREVIEW)) { problemReporter().previewFeatureUsed(s.sourceStart, s.sourceEnd); |