Fix precondition assertions
This commit is contained in:
parent
d0b162a76c
commit
9e4cddf5db
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue