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
The following commit(s) were added to refs/heads/master by this push:
new cab1b8aa4 Javadoc
cab1b8aa4 is described below
commit cab1b8aa4458ebd9dcb6f47c3c974b57a9ed1a73
Author: Gary D. Gregory <[email protected]>
AuthorDate: Thu Jul 10 11:26:15 2025 -0400
Javadoc
---
src/main/java/org/apache/commons/compress/utils/FileNameUtils.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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 26d1cddd2..bd083a82f 100644
--- a/src/main/java/org/apache/commons/compress/utils/FileNameUtils.java
+++ b/src/main/java/org/apache/commons/compress/utils/FileNameUtils.java
@@ -29,7 +29,9 @@
* Generic file name utilities.
*
* @since 1.20
+ * @deprecated Use {@link PathUtils} and {@link FilenameUtils}.
*/
+@Deprecated
public class FileNameUtils {
/**
@@ -56,7 +58,7 @@ public static String getBaseName(final Path path) {
*
* @return the base name of file name
* @param fileName the name of the file to obtain the base name of.
- * @deprecated No longer used, no replacement.
+ * @deprecated Use {@link FilenameUtils#removeExtension(String)}.
*/
@Deprecated
public static String getBaseName(final String fileName) {