Skip to content

Commit 4326c53

Browse files
committed
Polishing
(cherry picked from commit 2ce75dc)
1 parent 3da7a35 commit 4326c53

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public T mapRow(ResultSet rs, int rowNumber) throws SQLException {
343343
bw.setPropertyValue(pd.getName(), value);
344344
}
345345
catch (TypeMismatchException ex) {
346-
if (value == null && this.primitivesDefaultedForNullValue) {
346+
if (value == null && isPrimitivesDefaultedForNullValue()) {
347347
if (logger.isDebugEnabled()) {
348348
String propertyType = ClassUtils.getQualifiedName(pd.getPropertyType());
349349
logger.debug(String.format(

spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/PayloadMethodArgumentResolver.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -191,8 +191,7 @@ protected Class<?> resolveTargetClass(MethodParameter parameter, Message<?> mess
191191
/**
192192
* Validate the payload if applicable.
193193
* <p>The default implementation checks for {@code @javax.validation.Valid},
194-
* Spring's {@link Validated},
195-
* and custom annotations whose name starts with "Valid".
194+
* Spring's {@link Validated}, and custom annotations whose name starts with "Valid".
196195
* @param message the currently processed message
197196
* @param parameter the method parameter
198197
* @param target the target payload object

0 commit comments

Comments
 (0)