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 ef72cbdcef491533b5bb5fa6eee573b1e565440d Author: Gary D. Gregory <[email protected]> AuthorDate: Sun Oct 12 15:45:31 2025 -0400 Wrong class was tested --- src/test/java/org/apache/commons/codec/CharsetsTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/codec/CharsetsTest.java b/src/test/java/org/apache/commons/codec/CharsetsTest.java index 037b264e..5dd9f9b9 100644 --- a/src/test/java/org/apache/commons/codec/CharsetsTest.java +++ b/src/test/java/org/apache/commons/codec/CharsetsTest.java @@ -25,7 +25,6 @@ import java.util.Collection; import java.util.SortedSet; import java.util.TreeSet; -import org.apache.commons.io.Charsets; import org.junit.jupiter.api.Test; /** @@ -40,7 +39,12 @@ class CharsetsTest { } public static Collection<Charset> getRequiredCharsets() { - return Charsets.requiredCharsets().values(); + return org.apache.commons.io.Charsets.requiredCharsets().values(); + } + + @Test + void testDeprecatedConstructor() { + new Charsets(); } @SuppressWarnings("deprecation")
