maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r709790 - /maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java
Date Sat, 01 Nov 2008 22:30:01 GMT
Author: hboutemy
Date: Sat Nov  1 15:30:00 2008
New Revision: 709790

URL: http://svn.apache.org/viewvc?rev=709790&view=rev
Log:
don't use platform encoding when reading an XML stream (merged from 2.1.x branch r709670)

Modified:
    maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java

Modified: maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java?rev=709790&r1=709789&r2=709790&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java
(original)
+++ maven/components/branches/maven-2.0.x/maven-core/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java
Sat Nov  1 15:30:00 2008
@@ -21,13 +21,13 @@
 
 import org.apache.maven.usability.plugin.io.xpp3.ParamdocXpp3Reader;
 import org.codehaus.plexus.util.IOUtil;
+import org.codehaus.plexus.util.ReaderFactory;
 import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
 
 import java.io.BufferedReader;
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
-import java.io.InputStreamReader;
 import java.io.Reader;
 import java.net.MalformedURLException;
 import java.net.URL;
@@ -116,7 +116,7 @@
     private static Map parseExpressionDocumentation( InputStream docStream )
         throws IOException, XmlPullParserException
     {
-        Reader reader = new BufferedReader( new InputStreamReader( docStream ) );
+        Reader reader = new BufferedReader( ReaderFactory.newXmlReader( docStream ) );
         
         ParamdocXpp3Reader paramdocReader = new ParamdocXpp3Reader();
         



Mime
View raw message