This is an automated email from the ASF dual-hosted git repository.

mbien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 09c379125c added additional error code and updated maven plugin 
version.
     new 931459385a Merge pull request #5837 from 
mbien/enable-preview-hint-update
09c379125c is described below

commit 09c379125c2a5696a43073a853a2eb49cdb4163c
Author: Michael Bien <[email protected]>
AuthorDate: Mon Apr 17 21:52:55 2023 +0200

    added additional error code and updated maven plugin version.
---
 .../modules/ant/hints/errors/EnablePreviewAntProj.java        |  3 ++-
 .../java/hints/errors/EnablePreviewSingleSourceFile.java      |  3 ++-
 .../modules/maven/hints/errors/EnablePreviewMavenProj.java    | 11 ++++++-----
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git 
a/java/ant.hints/src/org/netbeans/modules/ant/hints/errors/EnablePreviewAntProj.java
 
b/java/ant.hints/src/org/netbeans/modules/ant/hints/errors/EnablePreviewAntProj.java
index ce88520028..7f4e2d196d 100644
--- 
a/java/ant.hints/src/org/netbeans/modules/ant/hints/errors/EnablePreviewAntProj.java
+++ 
b/java/ant.hints/src/org/netbeans/modules/ant/hints/errors/EnablePreviewAntProj.java
@@ -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
diff --git 
a/java/java.hints/src/org/netbeans/modules/java/hints/errors/EnablePreviewSingleSourceFile.java
 
b/java/java.hints/src/org/netbeans/modules/java/hints/errors/EnablePreviewSingleSourceFile.java
index 247db95563..a311d66393 100644
--- 
a/java/java.hints/src/org/netbeans/modules/java/hints/errors/EnablePreviewSingleSourceFile.java
+++ 
b/java/java.hints/src/org/netbeans/modules/java/hints/errors/EnablePreviewSingleSourceFile.java
@@ -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
 
diff --git 
a/java/maven.hints/src/org/netbeans/modules/maven/hints/errors/EnablePreviewMavenProj.java
 
b/java/maven.hints/src/org/netbeans/modules/maven/hints/errors/EnablePreviewMavenProj.java
index c4dc61219b..500c5811a2 100644
--- 
a/java/maven.hints/src/org/netbeans/modules/maven/hints/errors/EnablePreviewMavenProj.java
+++ 
b/java/maven.hints/src/org/netbeans/modules/maven/hints/errors/EnablePreviewMavenProj.java
@@ -61,14 +61,15 @@ import org.openide.filesystems.FileSystem;
  */
 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
@@ -186,7 +187,7 @@ public class EnablePreviewMavenProj implements 
ErrorRule<Void> {
         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;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to