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 5597ca046ae8363f2600ae63733128d3b49e93c0
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Dec 21 17:57:02 2025 -0500

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

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 75a2dd8df..ca5f8167a 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -122,6 +122,7 @@ The <action> type attribute can be add,update,fix,remove.
       <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>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate 
org.apache.commons.compress.utils.OsgiUtils.OsgiUtils().</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/OsgiUtils.java 
b/src/main/java/org/apache/commons/compress/utils/OsgiUtils.java
index 63d4395d7..442822799 100644
--- a/src/main/java/org/apache/commons/compress/utils/OsgiUtils.java
+++ b/src/main/java/org/apache/commons/compress/utils/OsgiUtils.java
@@ -58,4 +58,14 @@ public static boolean isRunningInOsgiEnvironment() {
         return inOsgiEnvironment;
     }
 
+    /**
+     * Constructs a new instance.
+     *
+     * @deprecated Will be removed in 4.0.
+     */
+    @Deprecated
+    public OsgiUtils() {
+        // Utility class
+    }
+
 }

Reply via email to