Skip to content

Commit 9e4cddf

Browse files
committed
Fix precondition assertions
1 parent d0b162a commit 9e4cddf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class InjectionCodeGenerator {
5353

5454

5555
InjectionCodeGenerator(ClassName targetClassName, RuntimeHints hints) {
56-
Assert.notNull(hints, "ClassName must not be null");
56+
Assert.notNull(targetClassName, "ClassName must not be null");
5757
Assert.notNull(hints, "RuntimeHints must not be null");
5858
this.targetClassName = targetClassName;
5959
this.hints = hints;

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ private static boolean isRFC5987AttrChar(byte c) {
535535
* @see <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>
536536
*/
537537
private static String decodeQuotedPrintableFilename(String filename, Charset charset) {
538-
Assert.notNull(filename, "'input' String should not be null");
539-
Assert.notNull(charset, "'charset' should not be null");
538+
Assert.notNull(filename, "'filename' must not be null");
539+
Assert.notNull(charset, "'charset' must not be null");
540540

541541
byte[] value = filename.getBytes(US_ASCII);
542542
ByteArrayOutputStream baos = new ByteArrayOutputStream();

0 commit comments

Comments
 (0)