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-io.git
commit 3a5588b3a3dfaeaece546b66c82a32482fbeef60 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Dec 10 16:21:33 2024 -0500 Deprecate constructor Charsets.Charsets() to be private in 4.0 --- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/io/Charsets.java | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index f1831db74..791a08b05 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -49,6 +49,7 @@ The <action> type attribute can be add,update,fix,remove. <release version="2.19.0" date="YYYY-MM-DD" description="Version 2.18.1: Java 8 is required."> <!-- FIX --> <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate constructor Counters.Counters() to be private in 4.0.</action> + <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate constructor Charsets.Charsets() to be private in 4.0.</action> <!-- ADD --> <action dev="ggregory" type="add" issue="IO-860" due-to="Nico Strecker, Gary Gregory">Add ThrottledInputStream.Builder.setMaxBytes(long, ChronoUnit).</action> <action dev="ggregory" type="add" due-to="Gary Gregory">Add IOIterable.</action> diff --git a/src/main/java/org/apache/commons/io/Charsets.java b/src/main/java/org/apache/commons/io/Charsets.java index 11433cfed..26fcd8631 100644 --- a/src/main/java/org/apache/commons/io/Charsets.java +++ b/src/main/java/org/apache/commons/io/Charsets.java @@ -218,4 +218,14 @@ public class Charsets { public static Charset toCharset(final String charsetName, final Charset defaultCharset) throws UnsupportedCharsetException { return charsetName == null ? defaultCharset : Charset.forName(charsetName); } + + /** + * Construct a new instance. + * + * @deprecated Will be private in 4.0 + */ + @Deprecated + public Charsets() { + // empty + } }