Fix precondition assertions

This commit is contained in:
Sam Brannen
2022-11-08 14:21:58 +01:00
parent d0b162a76c
commit 9e4cddf5db
2 changed files with 3 additions and 3 deletions

View File

@@ -535,8 +535,8 @@ public final class ContentDisposition {
* @see <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>
*/
private static String decodeQuotedPrintableFilename(String filename, Charset charset) {
Assert.notNull(filename, "'input' String should not be null");
Assert.notNull(charset, "'charset' should not be null");
Assert.notNull(filename, "'filename' must not be null");
Assert.notNull(charset, "'charset' must not be null");
byte[] value = filename.getBytes(US_ASCII);
ByteArrayOutputStream baos = new ByteArrayOutputStream();