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 2021/05/31 11:17:10 UTC

[maven-doxia] branch master updated: replace deprecated class from commons-lang (#65)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 80e16ac  replace deprecated class from commons-lang (#65)
80e16ac is described below

commit 80e16ac647e833c42f2233de577d1d1f2f4d0bf5
Author: Elliotte Rusty Harold <el...@users.noreply.github.com>
AuthorDate: Mon May 31 11:15:53 2021 +0000

    replace deprecated class from commons-lang (#65)
---
 doxia-core/pom.xml                                                  | 5 +++++
 doxia-core/src/main/java/org/apache/maven/doxia/util/HtmlTools.java | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/doxia-core/pom.xml b/doxia-core/pom.xml
index 449f433..cbfc95d 100644
--- a/doxia-core/pom.xml
+++ b/doxia-core/pom.xml
@@ -60,6 +60,11 @@ under the License.
       <version>3.8.1</version>
     </dependency>
     <dependency>
+      <groupId>org.apache.commons</groupId>
+      <artifactId>commons-text</artifactId>
+      <version>1.3</version>
+    </dependency>
+    <dependency>
       <groupId>org.apache.httpcomponents</groupId>
       <artifactId>httpclient</artifactId>
       <version>4.5.13</version>
diff --git a/doxia-core/src/main/java/org/apache/maven/doxia/util/HtmlTools.java b/doxia-core/src/main/java/org/apache/maven/doxia/util/HtmlTools.java
index 925bc3f..deeaacd 100644
--- a/doxia-core/src/main/java/org/apache/maven/doxia/util/HtmlTools.java
+++ b/doxia-core/src/main/java/org/apache/maven/doxia/util/HtmlTools.java
@@ -27,7 +27,7 @@ import java.util.Map;
 
 import javax.swing.text.html.HTML.Tag;
 
-import org.apache.commons.lang3.StringEscapeUtils;
+import org.apache.commons.text.StringEscapeUtils;
 import org.apache.maven.doxia.markup.HtmlMarkup;
 import org.codehaus.plexus.util.StringUtils;