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 2024/12/28 13:43:11 UTC
(commons-codec) 01/03: Deprecate CharSequenceUtils.CharSequenceUtils()
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-codec.git
commit 1b815fef93e6727bd33a3ecdb11f434be28aa1e5
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Dec 28 08:14:58 2024 -0500
Deprecate CharSequenceUtils.CharSequenceUtils()
---
src/changes/changes.xml | 1 +
.../org/apache/commons/codec/binary/CharSequenceUtils.java | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index bc098fe7..79383ca8 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -47,6 +47,7 @@ The <action> type attribute can be add,update,fix,remove.
<!-- FIX -->
<action type="fix" dev="ggregory" due-to="Gary Gregory">Rewrite DaitchMokotoffSoundex.soundex(String) using String.join().</action>
<action type="fix" issue="CODEC-324" dev="ggregory" due-to="Michael Froh">Use Resource.class to load resources, rather than its class loader #353.</action>
+ <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate CharSequenceUtils.CharSequenceUtils().</action>
<!-- ADD -->
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot">Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0 #296, #305, #313.</action>
diff --git a/src/main/java/org/apache/commons/codec/binary/CharSequenceUtils.java b/src/main/java/org/apache/commons/codec/binary/CharSequenceUtils.java
index 0625e656..ece4d81d 100644
--- a/src/main/java/org/apache/commons/codec/binary/CharSequenceUtils.java
+++ b/src/main/java/org/apache/commons/codec/binary/CharSequenceUtils.java
@@ -29,6 +29,16 @@ package org.apache.commons.codec.binary;
*/
public class CharSequenceUtils {
+ /**
+ * Consider package-private.
+ *
+ * @deprecated Will be package-private in the next major version.
+ */
+ @Deprecated
+ public CharSequenceUtils() {
+ // empty
+ }
+
/**
* Green implementation of regionMatches.
*