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 2020/04/08 23:27:05 UTC

[maven-jxr] branch depre created (now 884d6c1)

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

elharo pushed a change to branch depre
in repository https://gitbox.apache.org/repos/asf/maven-jxr.git.


      at 884d6c1  remove reference to deprecated class

This branch includes the following new commits:

     new 884d6c1  remove reference to deprecated class

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-jxr] 01/01: remove reference to deprecated class

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch depre
in repository https://gitbox.apache.org/repos/asf/maven-jxr.git

commit 884d6c15a64b779c757cdcb6d636bffc03c5b30b
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Wed Apr 8 19:26:49 2020 -0400

    remove reference to deprecated class
---
 .../src/main/java/org/apache/maven/plugin/jxr/JxrReportUtil.java  | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReportUtil.java b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReportUtil.java
index 9da6835..6c037a2 100644
--- a/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReportUtil.java
+++ b/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/JxrReportUtil.java
@@ -20,6 +20,7 @@ package org.apache.maven.plugin.jxr;
  */
 
 import java.io.IOException;
+import java.io.StringReader;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
@@ -37,10 +38,10 @@ import org.apache.maven.project.MavenProject;
 import org.apache.maven.wagon.repository.Repository;
 import org.apache.xpath.XPathAPI;
 import org.apache.xpath.objects.XObject;
-import org.codehaus.plexus.util.StringInputStream;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.plexus.util.xml.Xpp3Dom;
 import org.w3c.dom.Document;
+import org.xml.sax.InputSource;
 import org.xml.sax.SAXException;
 
 /**
@@ -162,8 +163,9 @@ public class JxrReportUtil
 
             try
             {
-                StringInputStream stringInputStream = new StringInputStream( pluginConf.toString() );
-                Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse( stringInputStream );
+                StringReader reader = new StringReader( pluginConf.toString() );
+                InputSource source = new InputSource( reader );
+                Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse( source );
 
                 XObject obj = XPathAPI.eval( doc, "//configuration/" + optionName );