Skip to content

Commit

Permalink
Deprecate newXmlWriter (#131)
Browse files Browse the repository at this point in the history
XmlStreamWriter is deprecated so the factory mwthods that create one should be too. 
@hboutemy
  • Loading branch information
elharo committed Mar 11, 2023
1 parent 673509e commit 85a768d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -124,7 +126,9 @@ public static XmlStreamWriter newXmlWriter( @Nonnull OutputStream out )
* @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
{
Expand Down

0 comments on commit 85a768d

Please sign in to comment.