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/02/26 15:29:23 UTC

[maven-shared-utils] 01/01: Deprecate newXmlWriter

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

elharo pushed a commit to branch elharo-patch-1
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git

commit c7f1e983f83e1f0bb12f345cd6922e71ffb74d98
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Sun Feb 26 15:29:17 2023 +0000

    Deprecate newXmlWriter
    
    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
     {