You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2023/03/11 11:40:25 UTC
[maven-shared-utils] branch master updated: Deprecate newXmlWriter (#131)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git
The following commit(s) were added to refs/heads/master by this push:
new 85a768d Deprecate newXmlWriter (#131)
85a768d is described below
commit 85a768d74a33db6be3a0892295da79236bdd98df
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Sat Mar 11 06:40:21 2023 -0500
Deprecate newXmlWriter (#131)
XmlStreamWriter is deprecated so the factory mwthods that create one should be too.
@hboutemy
---
src/main/java/org/apache/maven/shared/utils/WriterFactory.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/main/java/org/apache/maven/shared/utils/WriterFactory.java b/src/main/java/org/apache/maven/shared/utils/WriterFactory.java
index e81ccee..f7c5d90 100644
--- a/src/main/java/org/apache/maven/shared/utils/WriterFactory.java
+++ b/src/main/java/org/apache/maven/shared/utils/WriterFactory.java
@@ -110,7 +110,9 @@ public class WriterFactory
* @return an XML writer instance for the output stream
* @throws IOException if any
* @see XmlStreamWriter
+ * @deprecated use org.apache.commons.io.input.XmlStreamWriter instead
*/
+ @Deprecated
public static XmlStreamWriter newXmlWriter( @Nonnull OutputStream out )
throws IOException
{
@@ -124,7 +126,9 @@ public class WriterFactory
* @return an XML writer instance for the output file
* @throws IOException if any
* @see XmlStreamWriter
+ * @deprecated use org.apache.commons.io.input.XmlStreamWriter instead
*/
+ @Deprecated
public static XmlStreamWriter newXmlWriter( @Nonnull File file )
throws IOException
{