Skip to content

Commit

Permalink
Merge pull request #5837 from mbien/enable-preview-hint-update
Browse files Browse the repository at this point in the history
add missing error code to enable-preview hint
  • Loading branch information
mbien authored Apr 17, 2023
2 parents 5a97ccf + 09c3791 commit 9314593
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public class EnablePreviewAntProj implements ErrorRule<Void> {

private static final Set<String> ERROR_CODES = new HashSet<String>(Arrays.asList(
"compiler.err.preview.feature.disabled", // NOI18N
"compiler.err.preview.feature.disabled.plural")); // NOI18N
"compiler.err.preview.feature.disabled.plural", // NOI18N
"compiler.err.is.preview")); // NOI18N
private static final String ENABLE_PREVIEW_FLAG = "--enable-preview"; // NOI18N
private static final String JAVAC_COMPILER_ARGS = "javac.compilerargs"; // NOI18N
private static final String RUN_JVMARGS = "run.jvmargs"; // NOI18N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public class EnablePreviewSingleSourceFile implements ErrorRule<Void> {

private static final Set<String> ERROR_CODES = new HashSet<String>(Arrays.asList(
"compiler.err.preview.feature.disabled", //NOI18N
"compiler.err.preview.feature.disabled.plural")); // NOI18N
"compiler.err.preview.feature.disabled.plural", // NOI18N
"compiler.err.is.preview")); // NOI18N
private static final String ENABLE_PREVIEW_FLAG = "--enable-preview"; // NOI18N
private static final String SOURCE_FLAG = "--source"; // NOI18N

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@
*/
public class EnablePreviewMavenProj implements ErrorRule<Void> {

private static final Set<String> ERROR_CODES = new HashSet<String>(Arrays.asList(
"compiler.err.preview.feature.disabled",
"compiler.err.preview.feature.disabled.plural")); // NOI18N
private static final Set<String> ERROR_CODES = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(
"compiler.err.preview.feature.disabled", // NOI18N
"compiler.err.preview.feature.disabled.plural", // NOI18N
"compiler.err.is.preview"))); // NOI18N
private static final String ENABLE_PREVIEW_FLAG = "--enable-preview"; // NOI18N

@Override
public Set<String> getCodes() {
return Collections.unmodifiableSet(ERROR_CODES);
return ERROR_CODES;
}

@Override
Expand Down Expand Up @@ -186,7 +187,7 @@ private static class AddMvnCompilerPluginForEnablePreview implements ModelOperat
private static final String MAVEN_COMPILER_ARTIFACT_ID = "maven-compiler-plugin"; // NOI18N
private static final String COMPILER_ID_PROPERTY = "compilerId"; // NOI18N
private static final String COMPILER_ARG = "compilerArgs"; // NOI18N
private static final String MAVEN_COMPILER_VERSION = "3.3"; // NOI18N
private static final String MAVEN_COMPILER_VERSION = "3.11.0"; // NOI18N
private static final String ARG = "arg";// NOI18N
private POMComponentFactory factory;

Expand Down

0 comments on commit 9314593

Please sign in to comment.