Merge pull request #360 from jwtk/285-throws-clause

Base64 update throws clause
This commit is contained in:
Les Hazlewood 2018-07-23 15:55:40 -04:00 committed by GitHub
commit 56f507fb59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -217,8 +217,9 @@ final class Base64 { //final and package-protected on purpose
* *
* @param sArr The source array. Length 0 will return an empty array. <code>null</code> will throw an exception. * @param sArr The source array. Length 0 will return an empty array. <code>null</code> will throw an exception.
* @return The decoded array of bytes. May be of length 0. * @return The decoded array of bytes. May be of length 0.
* @throws DecodingException on illegal input
*/ */
final byte[] decodeFast(char[] sArr) { final byte[] decodeFast(char[] sArr) throws DecodingException {
// Check special case // Check special case
int sLen = sArr != null ? sArr.length : 0; int sLen = sArr != null ? sArr.length : 0;