You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/02/19 13:49:29 UTC
(commons-exec) 03/04: Deprecate StringUtils.StringUtils()
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-exec.git
commit 1225488195156c61e35a084586fc7f44ee831660
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Wed Feb 19 08:45:26 2025 -0500
Deprecate StringUtils.StringUtils()
---
src/changes/changes.xml | 1 +
src/main/java/org/apache/commons/exec/util/StringUtils.java | 12 +++++++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 756303ce..1e382ded 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -36,6 +36,7 @@
<action type="fix" dev="ggregory" due-to="Gary Gregory">Replace OS.OS_* use of Locale.ENGLISH with Locale.ROOT.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate DebugUtils.DebugUtils().</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate MapUtils.MapUtils().</action>
+ <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate StringUtils.StringUtils().</action>
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot, Gary Gregory">Bump org.apache.commons:commons-parent from 65 to 79 #174, #204, #212, #214, #219, #223, #226, #233.</action>
</release>
diff --git a/src/main/java/org/apache/commons/exec/util/StringUtils.java b/src/main/java/org/apache/commons/exec/util/StringUtils.java
index 05d85d8e..8cffa24c 100644
--- a/src/main/java/org/apache/commons/exec/util/StringUtils.java
+++ b/src/main/java/org/apache/commons/exec/util/StringUtils.java
@@ -231,4 +231,14 @@ public class StringUtils {
public static String toString(final String[] strings, final String separator) {
return String.join(separator, strings);
}
-}
\ No newline at end of file
+
+ /**
+ * Constructs a new instance.
+ *
+ * @deprecated Will be private in the next major version.
+ */
+ @Deprecated
+ public StringUtils() {
+ // empty
+ }
+}