Author: sebb
Date: Sun Mar 26 17:38:43 2017
New Revision: 1788758

URL: http://svn.apache.org/viewvc?rev=1788758&view=rev
Log:
Better Javadoc

Modified:
    
commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/StringUtils.java

Modified: 
commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/StringUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/StringUtils.java?rev=1788758&r1=1788757&r2=1788758&view=diff
==============================================================================
--- 
commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/StringUtils.java
 (original)
+++ 
commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/binary/StringUtils.java
 Sun Mar 26 17:38:43 2017
@@ -282,9 +282,11 @@ public class StringUtils {
      * @param bytes
      *            The bytes to be decoded into characters
      * @param charset
-     *            The {@link Charset} to encode the <code>String</code>
+     *            The {@link Charset} to encode the <code>String</code>; not 
{@code null}
      * @return A new <code>String</code> decoded from the specified array of 
bytes using the given charset,
      *         or <code>null</code> if the input byte array was 
<code>null</code>.
+     * @throws NullPointerException
+     *             Thrown if charset is {@code null}
      */
     private static String newString(final byte[] bytes, final Charset charset) 
{
         return bytes == null ? null : new String(bytes, charset);


Reply via email to