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

matthiasblaesing 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 7e1d4d2  JSF: Declaration of the xmlns namespace is reported as 
missing library
     new 18b85fb  Merge pull request #3636 from matthiasblaesing/jsf_fix
7e1d4d2 is described below

commit 7e1d4d2fa2e38b700759eb37513bfd231544ec8d
Author: Matthias Bläsing <mblaes...@doppel-helix.eu>
AuthorDate: Thu Feb 17 21:19:53 2022 +0100

    JSF: Declaration of the xmlns namespace is reported as missing library
---
 .../modules/web/jsf/editor/hints/LibraryDeclarationChecker.java      | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/hints/LibraryDeclarationChecker.java
 
b/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/hints/LibraryDeclarationChecker.java
index 3b49bcb..9e21cc6 100644
--- 
a/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/hints/LibraryDeclarationChecker.java
+++ 
b/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/hints/LibraryDeclarationChecker.java
@@ -69,6 +69,7 @@ import org.openide.util.NbBundle;
  * @author marekfukala
  */
 public class LibraryDeclarationChecker extends HintsProvider {
+    private static final String SCHEMA_INSTANCE = 
"http://www.w3.org/2001/XMLSchema-instance";; //NOI18N
 
     private static final Logger LOG = 
Logger.getLogger(LibraryDeclarationChecker.class.getName());
 
@@ -204,6 +205,10 @@ public class LibraryDeclarationChecker extends 
HintsProvider {
         }
 
         for (String namespace : declaredNamespaces) {
+            if(SCHEMA_INSTANCE.equals(namespace)) {
+                continue;
+            }
+
             Library lib = NamespaceUtils.getForNs(libs, namespace);
             if (lib != null) {
                 // http://java.sun.com/jsf/passthrough usage needs to be 
resolved on base of all declared libraries

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to