You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/07/15 12:57:55 UTC
(commons-text) 01/03: Reduce use of deprecated code
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git
commit dcf9bcc758f145125bd6f6a77e38c69af5ee2564
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jul 15 08:50:33 2024 -0400
Reduce use of deprecated code
---
.../commons/text/similarity/ParameterizedEditDistanceFromTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java b/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java
index e799908a..1373d1a6 100644
--- a/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java
+++ b/src/test/java/org/apache/commons/text/similarity/ParameterizedEditDistanceFromTest.java
@@ -37,9 +37,9 @@ public class ParameterizedEditDistanceFromTest<R> {
Arguments.of(new HammingDistance(), "Japtheth, Ham, Shem", "Japtheth, HAM, Shem", 2),
Arguments.of(new HammingDistance(), "Hamming", "Hamming", 0),
- Arguments.of(new LevenshteinDistance(), "Apache", "a patchy", 4),
- Arguments.of(new LevenshteinDistance(), "go", "no go", 3),
- Arguments.of(new LevenshteinDistance(), "go", "go", 0),
+ Arguments.of(LevenshteinDistance.getDefaultInstance(), "Apache", "a patchy", 4),
+ Arguments.of(LevenshteinDistance.getDefaultInstance(), "go", "no go", 3),
+ Arguments.of(LevenshteinDistance.getDefaultInstance(), "go", "go", 0),
Arguments.of(new LevenshteinDistance(4), "Apache", "a patchy", 4),
Arguments.of(new LevenshteinDistance(4), "go", "no go", 3),