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-compress.git

commit f8c88e7b5ea86231abdefc19c444a54971eb45ea
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Dec 21 17:55:14 2025 -0500

    Deprecate
    org.apache.commons.compress.utils.FileNameUtils.FileNameUtils()
---
 src/changes/changes.xml                                        |  1 +
 .../java/org/apache/commons/compress/utils/FileNameUtils.java  | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 46c34eebb..75a2dd8df 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -121,6 +121,7 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate 
SeekableInMemoryByteChannel in favor of ByteArraySeekableByteChannel.</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate 
org.apache.commons.compress.archivers.sevenz.CLI.CLI().</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate 
org.apache.commons.compress.archivers.zip.ExtraFieldUtils.ExtraFieldUtils().</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate 
org.apache.commons.compress.utils.FileNameUtils.FileNameUtils().</action>
       <!-- ADD -->
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
MemoryLimitException.MemoryLimitException(long, long).</action>
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
CompressException.CompressException(String, Object...).</action>
diff --git a/src/main/java/org/apache/commons/compress/utils/FileNameUtils.java 
b/src/main/java/org/apache/commons/compress/utils/FileNameUtils.java
index 0e17271e7..34a543a13 100644
--- a/src/main/java/org/apache/commons/compress/utils/FileNameUtils.java
+++ b/src/main/java/org/apache/commons/compress/utils/FileNameUtils.java
@@ -100,4 +100,14 @@ public static String getExtension(final Path path) {
     public static String getExtension(final String fileName) {
         return FilenameUtils.getExtension(fileName);
     }
+
+    /**
+     * Constructs a new instance.
+     *
+     * @deprecated Will be removed in 4.0.
+     */
+    @Deprecated
+    public FileNameUtils() {
+        // Utility class
+    }
 }

Reply via email to