Browse Source

Fix precondition assertions

pull/29447/head
Sam Brannen 2 years ago
parent
commit
9e4cddf5db
  1. 2
      spring-orm/src/main/java/org/springframework/orm/jpa/support/InjectionCodeGenerator.java
  2. 4
      spring-web/src/main/java/org/springframework/http/ContentDisposition.java

2
spring-orm/src/main/java/org/springframework/orm/jpa/support/InjectionCodeGenerator.java

@ -53,7 +53,7 @@ class InjectionCodeGenerator { @@ -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;

4
spring-web/src/main/java/org/springframework/http/ContentDisposition.java

@ -535,8 +535,8 @@ public final class ContentDisposition { @@ -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…
Cancel
Save