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

@ -53,7 +53,7 @@ class InjectionCodeGenerator {
InjectionCodeGenerator(ClassName targetClassName, RuntimeHints hints) {
Assert.notNull(hints, "ClassName must not be null");
Assert.notNull(targetClassName, "ClassName must not be null");
Assert.notNull(hints, "RuntimeHints must not be null");
this.targetClassName = targetClassName;
this.hints = hints;

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();