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-lang.git

commit d2eff05cd0e8e50be033240b377a46f1293e3ccc
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Aug 24 14:38:25 2024 -0400

    Remove unused exception from deprecated StringUtils.toString(byte[],
    String)
---
 src/changes/changes.xml                                 | 1 +
 src/main/java/org/apache/commons/lang3/StringUtils.java | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 04b33b575..5dd47c31e 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -52,6 +52,7 @@ The <action> type attribute can be add,update,fix,remove.
     <action                   type="fix" dev="ggregory" due-to="Gary 
Gregory">Deprecate static RandomStringUtils.random*() methods in favor or 
.secure() and .insecure() versions.</action>
     <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">RandomUtils.secure() now uses SecureRandom() instead of 
SecureRandom.getInstanceStrong().</action>
     <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">RandomStringUtils.secure() now uses SecureRandom() instead of 
SecureRandom.getInstanceStrong().</action>
+    <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">Remove unused exception from deprecated StringUtils.toString(byte[], 
String).</action>
     <!-- ADD -->
     <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">Make RandomUtils.insecure() public.</action>
     <action                   type="add" dev="ggregory" due-to="Gary 
Gregory">Add RandomUtils.secureStrong().</action>
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java 
b/src/main/java/org/apache/commons/lang3/StringUtils.java
index 188bebb6d..cd1204f32 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -9031,15 +9031,13 @@ public class StringUtils {
      * @param charsetName
      *            the encoding to use, if null then use the platform default
      * @return a new String
-     * @throws UnsupportedEncodingException
-     *             Never thrown
      * @throws NullPointerException
      *             if the input is null
      * @deprecated use {@link StringUtils#toEncodedString(byte[], Charset)} 
instead of String constants in your code
      * @since 3.1
      */
     @Deprecated
-    public static String toString(final byte[] bytes, final String 
charsetName) throws UnsupportedEncodingException {
+    public static String toString(final byte[] bytes, final String 
charsetName) {
         return new String(bytes, Charsets.toCharset(charsetName));
     }
 

Reply via email to