File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/codec/binary Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments