Skip to content

Commit 949ff4a

Browse files
committed
Better Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1788758 13f79535-47bb-0310-9956-ffa450edef68
1 parent 33cc947 commit 949ff4a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/org/apache/commons/codec/binary/StringUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,11 @@ private static IllegalStateException newIllegalStateException(final String chars
282282
* @param bytes
283283
* The bytes to be decoded into characters
284284
* @param charset
285-
* The {@link Charset} to encode the <code>String</code>
285+
* The {@link Charset} to encode the <code>String</code>; not {@code null}
286286
* @return A new <code>String</code> decoded from the specified array of bytes using the given charset,
287287
* or <code>null</code> if the input byte array was <code>null</code>.
288+
* @throws NullPointerException
289+
* Thrown if charset is {@code null}
288290
*/
289291
private static String newString(final byte[] bytes, final Charset charset) {
290292
return bytes == null ? null : new String(bytes, charset);

0 commit comments

Comments
 (0)