maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1400595 - in /maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils: WriterFactory.java xml/XmlStreamWriter.java
Date Sun, 21 Oct 2012 08:47:29 GMT
Author: struberg
Date: Sun Oct 21 08:47:29 2012
New Revision: 1400595

URL: http://svn.apache.org/viewvc?rev=1400595&view=rev
Log:
MSHARED-236 avoid exposing of commons-io in public APIs

Modified:
    maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/WriterFactory.java
    maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/xml/XmlStreamWriter.java

Modified: maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/WriterFactory.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/WriterFactory.java?rev=1400595&r1=1400594&r2=1400595&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/WriterFactory.java
(original)
+++ maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/WriterFactory.java
Sun Oct 21 08:47:29 2012
@@ -29,8 +29,8 @@ import java.io.OutputStreamWriter;
 import java.io.UnsupportedEncodingException;
 import java.io.Writer;
 import java.nio.charset.Charset;
+import org.apache.maven.shared.utils.xml.XmlStreamWriter;
 
-import org.apache.commons.io.output.XmlStreamWriter;
 
 import javax.annotation.Nonnull;
 

Modified: maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/xml/XmlStreamWriter.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/xml/XmlStreamWriter.java?rev=1400595&r1=1400594&r2=1400595&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/xml/XmlStreamWriter.java
(original)
+++ maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/xml/XmlStreamWriter.java
Sun Oct 21 08:47:29 2012
@@ -23,8 +23,11 @@ import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.OutputStream;
 
-@Deprecated
-class XmlStreamWriter
+/**
+ * We just wrap the commons StreamWriter to not get into troubles
+ * by exposing shaded commons-io packages
+ */
+public class XmlStreamWriter
     extends org.apache.commons.io.output.XmlStreamWriter
 {
     public XmlStreamWriter( OutputStream out )



Mime
View raw message