Skip to content

Commit

Permalink
#247 Update dependency commons-lang to version 3.x (#248)
Browse files Browse the repository at this point in the history
- gets rid of the old commons-lang 2.x dependency
- updates / manages commons-lang3 to version 3.13.0
  • Loading branch information
mawiesne authored Oct 29, 2023
1 parent 2403f7d commit 1bd5437
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
1 change: 0 additions & 1 deletion dkpro-jwpl-deps/dkpro-jwpl-swc-engine-shade/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down
4 changes: 0 additions & 4 deletions dkpro-jwpl-revisionmachine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.sql.Timestamp;
import java.util.Collection;

import org.apache.commons.lang.StringEscapeUtils;
import org.apache.commons.lang3.StringEscapeUtils;

import org.dkpro.jwpl.revisionmachine.difftool.data.tasks.ISizeable;
import org.dkpro.jwpl.revisionmachine.difftool.data.tasks.content.DiffPart;
Expand Down Expand Up @@ -229,7 +229,7 @@ public String getRevisionText()
if (this.revisionText == null) {
revisionApi.setRevisionTextAndParts(this);
}
return StringEscapeUtils.unescapeHtml(this.revisionText);
return StringEscapeUtils.unescapeHtml4(this.revisionText);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions dkpro-jwpl-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
<artifactId>ptk-common</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.sweble.wikitext</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.Locale;
import java.util.Map;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;

import difflib.Delta;
import difflib.Delta.TYPE;
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<org.sweble.wikitext.version>3.1.9</org.sweble.wikitext.version>

<spring.version>5.3.30</spring.version>
<commons.lang3.version>3.13.0</commons.lang3.version>

<!-- DB specific dependency versions -->
<hibernate.version>6.1.7.Final</hibernate.version>
Expand Down Expand Up @@ -171,6 +172,11 @@
<artifactId>commons-compress</artifactId>
<version>1.24.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons.lang3.version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
Expand Down

0 comments on commit 1bd5437

Please sign in to comment.