(commons-net) branch master updated: Duh

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new 8ce06927 Duh
8ce06927 is described below

commit 8ce06927f2dcb2787046b409ae8394f9c51aea63
Author: Sebb 
AuthorDate: Tue May 7 01:26:50 2024 +0100

Duh
---
 .github/workflows/maven_adhoc.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/maven_adhoc.yml 
b/.github/workflows/maven_adhoc.yml
index ddc0371d..e0128a95 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -32,7 +32,7 @@ jobs:
 - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
   with:
 persist-credentials: false
-ref: ${{ tag }}
+ref: ${{ matrix.tag }}
 - name: Set up JDK
   uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # 
v4.2.1
   with:



(commons-net) branch master updated: Try once more

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new ee5505f2 Try once more
ee5505f2 is described below

commit ee5505f207f538f66f032f2cf4c6a990fc87408b
Author: Sebb 
AuthorDate: Tue May 7 01:24:32 2024 +0100

Try once more
---
 .github/workflows/maven_adhoc.yml | 13 +
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/maven_adhoc.yml 
b/.github/workflows/maven_adhoc.yml
index f5c83a51..ddc0371d 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -23,12 +23,16 @@ permissions:
 jobs:
   build:
 timeout-minutes: 7
+continue-on-error: true
+strategy:
+  matrix:
+tag: [ HEAD, rel/commons-net-3.10.0, rel/commons-net-3.9.0 ]
 runs-on: ubuntu-latest
 steps:
 - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
   with:
 persist-credentials: false
-fetch-depth: 0
+ref: ${{ tag }}
 - name: Set up JDK
   uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # 
v4.2.1
   with:
@@ -62,13 +66,6 @@ jobs:
 
 }
 EOD
-# Try to stop git complaints
-echo "FTPTimestampNET710Test.java" >>.gitignore
-echo ".gitignore" >>.gitignore
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
-git checkout rel/commons-net-3.10.0
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
-git checkout rel/commons-net-3.9.0
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
 # - name: Look for deletefile failures
 #   run: |



(commons-net) branch master updated: Git quiet

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new 604cd357 Git quiet
604cd357 is described below

commit 604cd357ea7b7ee3c5889be8b325cefacb172c92
Author: Sebb 
AuthorDate: Tue May 7 01:03:20 2024 +0100

Git quiet
---
 .github/workflows/maven_adhoc.yml | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/maven_adhoc.yml 
b/.github/workflows/maven_adhoc.yml
index d8240b53..f5c83a51 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -62,14 +62,13 @@ jobs:
 
 }
 EOD
+# Try to stop git complaints
+echo "FTPTimestampNET710Test.java" >>.gitignore
+echo ".gitignore" >>.gitignore
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
-git stash -u
 git checkout rel/commons-net-3.10.0
-git stash pop
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
-git stash -u
 git checkout rel/commons-net-3.9.0
-git stash pop
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
 # - name: Look for deletefile failures
 #   run: |



(commons-net) branch master updated: Allow checkout

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new d18aacb1 Allow checkout
d18aacb1 is described below

commit d18aacb1aa6b2d8aa7e3ddbb45887d2c57464a54
Author: Sebb 
AuthorDate: Tue May 7 00:54:07 2024 +0100

Allow checkout
---
 .github/workflows/maven_adhoc.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/maven_adhoc.yml 
b/.github/workflows/maven_adhoc.yml
index 0fc7bfc6..d8240b53 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -63,7 +63,9 @@ jobs:
 }
 EOD
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
+git stash -u
 git checkout rel/commons-net-3.10.0
+git stash pop
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
 git stash -u
 git checkout rel/commons-net-3.9.0



(commons-net) branch master updated: Allow checkout

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new 17843892 Allow checkout
17843892 is described below

commit 178438927a586dd32e301f710ee4c1ce56730edc
Author: Sebb 
AuthorDate: Tue May 7 00:51:16 2024 +0100

Allow checkout
---
 .github/workflows/maven_adhoc.yml | 4 
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/maven_adhoc.yml 
b/.github/workflows/maven_adhoc.yml
index 7f17fd01..0fc7bfc6 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -65,6 +65,10 @@ jobs:
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
 git checkout rel/commons-net-3.10.0
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
+git stash -u
+git checkout rel/commons-net-3.9.0
+git stash pop
+mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
 # - name: Look for deletefile failures
 #   run: |
 # mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest



(commons-net) branch master updated: Try 3.9

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new 01d1f94b Try 3.9
01d1f94b is described below

commit 01d1f94bc4cc323dbb8ae3c8338d4bc1c6f4fa10
Author: Sebb 
AuthorDate: Tue May 7 00:47:38 2024 +0100

Try 3.9
---
 .../net/ftp/parser/FTPTimestampNET710Test.java  | 21 +
 1 file changed, 21 insertions(+)

diff --git 
a/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampNET710Test.java 
b/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampNET710Test.java
new file mode 100644
index ..5f823b38
--- /dev/null
+++ 
b/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampNET710Test.java
@@ -0,0 +1,21 @@
+package org.apache.commons.net.ftp.parser;
+
+
+import java.text.ParseException;
+import java.util.Calendar;
+import java.util.Locale;
+import java.util.TimeZone;
+
+/**
+* Test NET710
+*/
+public class FTPTimestampNET710Test {
+
+public static void main(String [] args) throws ParseException {
+Calendar serverTime = 
Calendar.getInstance(TimeZone.getTimeZone("EDT"), Locale.US);
+serverTime.set(2022, 2, 16, 14, 0);
+Calendar p = new FTPTimestampParserImpl().parseTimestamp("Mar 13 
02:33", serverTime);
+System.out.println(p);
+}
+
+}



(commons-net) branch master updated: Try 3.10

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new 2490f1a8 Try 3.10
2490f1a8 is described below

commit 2490f1a86cfe4471a18d5853dda8471de7ea35f7
Author: Sebb 
AuthorDate: Tue May 7 00:41:12 2024 +0100

Try 3.10
---
 .github/workflows/maven_adhoc.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/maven_adhoc.yml 
b/.github/workflows/maven_adhoc.yml
index 660932e4..7f17fd01 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -63,7 +63,7 @@ jobs:
 }
 EOD
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
-git checkout rel/commons-net-3.8.0
+git checkout rel/commons-net-3.10.0
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
 # - name: Look for deletefile failures
 #   run: |



(commons-net) branch master updated: Needed for subsequent checkout

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new 8180b691 Needed for subsequent checkout
8180b691 is described below

commit 8180b691493d43362409ce5cd0960cd8a8a2075c
Author: Sebb 
AuthorDate: Tue May 7 00:37:50 2024 +0100

Needed for subsequent checkout
---
 .github/workflows/maven_adhoc.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/maven_adhoc.yml 
b/.github/workflows/maven_adhoc.yml
index 5a665f52..660932e4 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -28,6 +28,7 @@ jobs:
 - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
   with:
 persist-credentials: false
+fetch-depth: 0
 - name: Set up JDK
   uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # 
v4.2.1
   with:



(commons-net) branch master updated: Duh

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new c137215f Duh
c137215f is described below

commit c137215f1db02ddf9d4976e3855f8da15d8aeb7d
Author: Sebb 
AuthorDate: Tue May 7 00:35:12 2024 +0100

Duh
---
 .github/workflows/maven_adhoc.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/maven_adhoc.yml 
b/.github/workflows/maven_adhoc.yml
index 6e1ac4be..5a665f52 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -62,7 +62,7 @@ jobs:
 }
 EOD
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
-git co rel/commons-net-3.8.0
+git checkout rel/commons-net-3.8.0
 mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
 # - name: Look for deletefile failures
 #   run: |



(commons-net) branch master updated: No RAT

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new 5536b1bf No RAT
5536b1bf is described below

commit 5536b1bf8ddfb6d23f8ec7aa97424dc46f906b69
Author: Sebb 
AuthorDate: Tue May 7 00:33:01 2024 +0100

No RAT
---
 .github/workflows/maven_adhoc.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven_adhoc.yml 
b/.github/workflows/maven_adhoc.yml
index 4d54a09e..6e1ac4be 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -61,9 +61,9 @@ jobs:
 
 }
 EOD
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test
+mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
 git co rel/commons-net-3.8.0
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test
+mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test -Drat.skip
 # - name: Look for deletefile failures
 #   run: |
 # mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest



(commons-net) branch master updated: NET710 tests

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new fe90f032 NET710 tests
fe90f032 is described below

commit fe90f032315211659917b752e8ea196baa8a0b16
Author: Sebb 
AuthorDate: Tue May 7 00:24:02 2024 +0100

NET710 tests
---
 .github/workflows/maven_adhoc.yml | 53 +++
 1 file changed, 42 insertions(+), 11 deletions(-)

diff --git a/.github/workflows/maven_adhoc.yml 
b/.github/workflows/maven_adhoc.yml
index f8aa3383..4d54a09e 100644
--- a/.github/workflows/maven_adhoc.yml
+++ b/.github/workflows/maven_adhoc.yml
@@ -23,7 +23,7 @@ permissions:
 jobs:
   build:
 timeout-minutes: 7
-runs-on: windows-latest
+runs-on: ubuntu-latest
 steps:
 - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
   with:
@@ -33,17 +33,48 @@ jobs:
   with:
 distribution: 'temurin'
 java-version: 8
-- name: Look for deletefile failures
+- name: Test NET710
   run: |
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
-mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
+cat <<'EOD' 
>src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampNET710Test.java
+package org.apache.commons.net.ftp.parser;
+
+
+import java.text.ParseException;
+import java.util.Calendar;
+import java.util.Locale;
+import java.util.TimeZone;
+
+import org.junit.jupiter.api.Test;
+
+/**
+* Test NET710
+*/
+public class FTPTimestampNET710Test {
+
+@Test
+public void testNet710() throws ParseException {
+Calendar serverTime = 
Calendar.getInstance(TimeZone.getTimeZone("EDT"), Locale.US);
+serverTime.set(2022, 2, 16, 14, 0);
+Calendar p = new FTPTimestampParserImpl().parseTimestamp("Mar 
13 02:33", serverTime);
+System.out.println(p);
+}
+
+}
+EOD
+mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test
+git co rel/commons-net-3.8.0
+mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=FTPTimestampNET710Test
+# - name: Look for deletefile failures
+#   run: |
+# mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
+# mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
+# mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
+# mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
+# mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
+# mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
+# mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
+# mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
+# mvn -V --batch-mode --file pom.xml --no-transfer-progress test 
-Dtest=TFTPServerPathTest
 # - name: Test exec function
 #   run: |
 # mvn -q exec:java



(commons-net) branch master updated: Tests OK for me on Java8 and Java21 (macOS)

2024-05-06 Thread sebb
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
 new 8b2d2e93 Tests OK for me on Java8 and Java21 (macOS)
8b2d2e93 is described below

commit 8b2d2e93b3d3c5a12ae98b5691b1b37d560bbe47
Author: Sebb 
AuthorDate: Mon May 6 23:46:41 2024 +0100

Tests OK for me on Java8 and Java21 (macOS)
---
 .../org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
 
b/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
index 4faa822b..7778aebe 100644
--- 
a/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
+++ 
b/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
@@ -189,7 +189,7 @@ public class FTPTimestampParserImplTest {
 }
 
 @Test
-@Disabled
+// @Disabled
 public void testNet710() throws ParseException {
 Calendar serverTime = 
Calendar.getInstance(TimeZone.getTimeZone("EDT"), Locale.US);
 serverTime.set(2022, 2, 16, 14, 0);



(commons-text) branch master updated: Bump SpotBugs from 4.8.3 to 4.8.5

2024-05-06 Thread ggregory
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


The following commit(s) were added to refs/heads/master by this push:
 new 82ec3722 Bump SpotBugs from 4.8.3 to 4.8.5
82ec3722 is described below

commit 82ec3722b1161cfdc7ccb0c2a6c93f037e29cf9e
Author: Gary Gregory 
AuthorDate: Mon May 6 10:08:01 2024 -0400

Bump SpotBugs from 4.8.3 to 4.8.5

- Fixes https://github.com/spotbugs/spotbugs/issues/2710
- Doesn't fix https://github.com/spotbugs/spotbugs/issues/2710
---
 pom.xml  |  3 +--
 src/changes/changes.xml  |  1 +
 src/conf/spotbugs-exclude-filter.xml | 10 ++
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index cf1936e6..1523fb5e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -78,9 +78,8 @@
 0.95
 0.94
 0.98
-
 
-4.8.3
+4.8.5
   
 
   
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 4afd0be8..f6c62596 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -64,6 +64,7 @@ The  type attribute can be add,update,fix,remove.
 
 Bump tests on 
Java >= 22 org.graalvm.*:* from 24.0.0 to 24.0.1.
 Bump 
commons.bytebuddy.version from 1.14.13 to 1.14.14.
+Bump SpotBugs 
from 4.8.3 to 4.8.5.
   
   
 
diff --git a/src/conf/spotbugs-exclude-filter.xml 
b/src/conf/spotbugs-exclude-filter.xml
index a06d9fff..21131a04 100644
--- a/src/conf/spotbugs-exclude-filter.xml
+++ b/src/conf/spotbugs-exclude-filter.xml
@@ -61,5 +61,15 @@
   
 
 
+  
+
+  
+
+
+
+
+  
+
+
 
 



(commons-text) 01/02: Deprecate LevenshteinDetailedDistance.LevenshteinDetailedDistance() in favor of LevenshteinDetailedDistance.getDefaultInstance()

2024-05-06 Thread ggregory
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 0dbe013af322ed19a56fad83c36eb41513b0018e
Author: Gary Gregory 
AuthorDate: Mon May 6 09:16:05 2024 -0400

Deprecate LevenshteinDetailedDistance.LevenshteinDetailedDistance() in
favor of LevenshteinDetailedDistance.getDefaultInstance()
---
 src/changes/changes.xml | 1 +
 .../org/apache/commons/text/similarity/LevenshteinDetailedDistance.java | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 38faf001..a2d5b73a 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -59,6 +59,7 @@ The  type attribute can be add,update,fix,remove.
 Make 
package-private class private: StrMatcher.TrimMatcher.
 Make 
package-private class private and final: 
IntersectionSimilarity.BagCount.
 Make 
package-private class private and final: 
IntersectionSimilarity.TinyCount.
+Deprecate 
LevenshteinDetailedDistance.LevenshteinDetailedDistance() in favor of 
LevenshteinDetailedDistance.getDefaultInstance().
 
 Bump tests on 
Java >= 22 org.graalvm.*:* from 24.0.0 to 24.0.1.
 Bump 
commons.bytebuddy.version from 1.14.13 to 1.14.14.
diff --git 
a/src/main/java/org/apache/commons/text/similarity/LevenshteinDetailedDistance.java
 
b/src/main/java/org/apache/commons/text/similarity/LevenshteinDetailedDistance.java
index 1a281e26..ed4a0cca 100644
--- 
a/src/main/java/org/apache/commons/text/similarity/LevenshteinDetailedDistance.java
+++ 
b/src/main/java/org/apache/commons/text/similarity/LevenshteinDetailedDistance.java
@@ -452,7 +452,9 @@ public class LevenshteinDetailedDistance implements 
EditDistance
  *
  * @see LevenshteinDetailedDistance#getDefaultInstance()
+ * @deprecated Use {@link #getDefaultInstance()}
  */
+@Deprecated
 public LevenshteinDetailedDistance() {
 this(null);
 }



(commons-text) 02/02: Deprecate LevenshteinDistance.LevenshteinDistance() in favor of LevenshteinDistance.getDefaultInstance()

2024-05-06 Thread ggregory
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 62935d5324cb153a6739133d9f345587f6aadba2
Author: Gary Gregory 
AuthorDate: Mon May 6 09:23:24 2024 -0400

Deprecate LevenshteinDistance.LevenshteinDistance() in favor of
LevenshteinDistance.getDefaultInstance()
---
 src/changes/changes.xml | 1 +
 .../org/apache/commons/text/similarity/LevenshteinDetailedDistance.java | 2 +-
 .../java/org/apache/commons/text/similarity/LevenshteinDistance.java| 2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index a2d5b73a..4afd0be8 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -59,6 +59,7 @@ The  type attribute can be add,update,fix,remove.
 Make 
package-private class private: StrMatcher.TrimMatcher.
 Make 
package-private class private and final: 
IntersectionSimilarity.BagCount.
 Make 
package-private class private and final: 
IntersectionSimilarity.TinyCount.
+Deprecate 
LevenshteinDistance.LevenshteinDistance() in favor of 
LevenshteinDistance.getDefaultInstance().
 Deprecate 
LevenshteinDetailedDistance.LevenshteinDetailedDistance() in favor of 
LevenshteinDetailedDistance.getDefaultInstance().
 
 Bump tests on 
Java >= 22 org.graalvm.*:* from 24.0.0 to 24.0.1.
diff --git 
a/src/main/java/org/apache/commons/text/similarity/LevenshteinDetailedDistance.java
 
b/src/main/java/org/apache/commons/text/similarity/LevenshteinDetailedDistance.java
index ed4a0cca..f56317d5 100644
--- 
a/src/main/java/org/apache/commons/text/similarity/LevenshteinDetailedDistance.java
+++ 
b/src/main/java/org/apache/commons/text/similarity/LevenshteinDetailedDistance.java
@@ -452,7 +452,7 @@ public class LevenshteinDetailedDistance implements 
EditDistance
  *
  * @see LevenshteinDetailedDistance#getDefaultInstance()
- * @deprecated Use {@link #getDefaultInstance()}
+ * @deprecated Use {@link #getDefaultInstance()}.
  */
 @Deprecated
 public LevenshteinDetailedDistance() {
diff --git 
a/src/main/java/org/apache/commons/text/similarity/LevenshteinDistance.java 
b/src/main/java/org/apache/commons/text/similarity/LevenshteinDistance.java
index 570b45ed..b1f74921 100644
--- a/src/main/java/org/apache/commons/text/similarity/LevenshteinDistance.java
+++ b/src/main/java/org/apache/commons/text/similarity/LevenshteinDistance.java
@@ -327,7 +327,9 @@ public class LevenshteinDistance implements 
EditDistance {
  * of the algorithm that does not use a threshold parameter.
  *
  * @see LevenshteinDistance#getDefaultInstance()
+ * @deprecated Use {@link #getDefaultInstance()}.
  */
+@Deprecated
 public LevenshteinDistance() {
 this(null);
 }



(commons-text) branch master updated (698bd143 -> 62935d53)

2024-05-06 Thread ggregory
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git


from 698bd143 Update Checkstyle DTD version from 1.0 to 1.2
 new 0dbe013a Deprecate 
LevenshteinDetailedDistance.LevenshteinDetailedDistance() in favor of 
LevenshteinDetailedDistance.getDefaultInstance()
 new 62935d53 Deprecate LevenshteinDistance.LevenshteinDistance() in favor 
of LevenshteinDistance.getDefaultInstance()

The 2 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.


Summary of changes:
 src/changes/changes.xml | 2 ++
 .../org/apache/commons/text/similarity/LevenshteinDetailedDistance.java | 2 ++
 .../java/org/apache/commons/text/similarity/LevenshteinDistance.java| 2 ++
 3 files changed, 6 insertions(+)