From 84f392eaa42888e81d3efc598035fe1f91d58d67 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Fri, 7 Feb 2014 22:21:55 +0000 Subject: [PATCH] [LANG-969] StringUtils.toEncodedString(byte[], Charset) needlessly throws exception. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565833 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/lang3/StringUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index b8ae1e069..1450ff3f3 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -7625,7 +7625,7 @@ public static String toString(final byte[] bytes, final String charsetName) thro * the encoding to use, if null then use the platform default * @return a new String * @throws UnsupportedEncodingException - * If the named charset is not supported + * This exception is never thrown and should not be in the signature, it will be removed in 4.0. * @throws NullPointerException * if the input is null * @since 3.2