remove deprecated constants
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
diff --git a/jaxb-ri/core/src/main/java/org/glassfish/jaxb/core/v2/WellKnownNamespace.java b/jaxb-ri/core/src/main/java/org/glassfish/jaxb/core/v2/WellKnownNamespace.java
index 2bec113..380acf7 100644
--- a/jaxb-ri/core/src/main/java/org/glassfish/jaxb/core/v2/WellKnownNamespace.java
+++ b/jaxb-ri/core/src/main/java/org/glassfish/jaxb/core/v2/WellKnownNamespace.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -10,8 +10,6 @@
package org.glassfish.jaxb.core.v2;
-import javax.xml.XMLConstants;
-
/**
* Well-known namespace URIs.
* @author
@@ -21,24 +19,6 @@
public abstract class WellKnownNamespace {
private WellKnownNamespace() {} // no instanciation please
- /**
- * @deprecated Use javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI instead;
- */
- @Deprecated()
- public static final String XML_SCHEMA = XMLConstants.W3C_XML_SCHEMA_NS_URI;
-
- /**
- * @deprecated Use javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI instead
- */
- @Deprecated()
- public static final String XML_SCHEMA_INSTANCE = XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI;
-
- /**
- * @deprecated Use javax.xml.XMLConstants.XML_NS_URI instead;
- */
- @Deprecated()
- public static final String XML_NAMESPACE_URI = XMLConstants.XML_NS_URI;
-
public static final String XOP = "http://www.w3.org/2004/08/xop/include";
public static final String SWA_URI = "http://ws-i.org/profiles/basic/1.1/xsd";
diff --git a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/runtime/XMLSerializer.java b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/runtime/XMLSerializer.java
index 8226959..cd22dba 100644
--- a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/runtime/XMLSerializer.java
+++ b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/runtime/XMLSerializer.java
@@ -745,9 +745,9 @@
* Short for the following call sequence:
*
* <pre>
- getNamespaceContext().declareNamespace(WellKnownNamespace.XML_SCHEMA_INSTANCE,"xsi",true);
+ getNamespaceContext().declareNamespace(XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI,"xsi",true);
endNamespaceDecls();
- attribute(WellKnownNamespace.XML_SCHEMA_INSTANCE,"nil","true");
+ attribute(XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI,"nil","true");
endAttributes();
* </pre>
*/