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 2014/02/10 03:06:06 UTC
svn commit: r1566489 - in /commons/proper/lang/trunk/src:
changes/changes.xml main/java/org/apache/commons/lang3/StringUtils.java
Author: ggregory
Date: Mon Feb 10 02:06:06 2014
New Revision: 1566489
URL: http://svn.apache.org/r1566489
Log:
<action issue="LANG-969" type="fix" dev="ggregory" due-to="Matt Bishop">StringUtils.toEncodedString(byte[], Charset) needlessly throws UnsupportedEncodingException</action>
Modified:
commons/proper/lang/trunk/src/changes/changes.xml
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Modified: commons/proper/lang/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/changes/changes.xml?rev=1566489&r1=1566488&r2=1566489&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/changes/changes.xml [utf-8] (original)
+++ commons/proper/lang/trunk/src/changes/changes.xml [utf-8] Mon Feb 10 02:06:06 2014
@@ -22,6 +22,7 @@
<body>
<release version="3.3" date="TBA" description="Bugfix and Feature release">
+ <action issue="LANG-969" type="fix" dev="ggregory" due-to="Matt Bishop">StringUtils.toEncodedString(byte[], Charset) needlessly throws UnsupportedEncodingException</action>
<action issue="LANG-970" type="add" dev="ggregory">Add APIs MutableBoolean setTrue() and setFalse()</action>
<action issue="LANG-946" type="fix" dev="britter">ConstantInitializerTest fails when building with IBM JDK 7</action>
<action issue="LANG-962" type="add" dev="ggregory">Add SerializationUtils.roundtrip(T extends Serializable) to serialize then deserialize</action>
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=1566489&r1=1566488&r2=1566489&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Mon Feb 10 02:06:06 2014
@@ -7624,13 +7624,12 @@ public class StringUtils {
* @param charset
* the encoding to use, if null then use the platform default
* @return a new String
- * @throws UnsupportedEncodingException
- * This exception is never thrown and should not be in the signature, it will be removed in 4.0.
* @throws NullPointerException
* if {@code bytes} is null
* @since 3.2
+ * @since 3.3 No longer throws {@link UnsupportedEncodingException}.
*/
- public static String toEncodedString(byte[] bytes, Charset charset) throws UnsupportedEncodingException {
+ public static String toEncodedString(byte[] bytes, Charset charset) {
return new String(bytes, charset != null ? charset : Charset.defaultCharset());
}