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 <[email protected]> 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),
