Skip to content

Commit 93f7c57

Browse files
committed
Polishing.
Use ClassUtils.isAssignableValue(…) instead of ClassUtils.resolvePrimitiveIfNecessary(target).isAssignableFrom(…). Closes #1218
1 parent 3ae40aa commit 93f7c57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/convert/MappingCassandraConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1029,10 +1029,10 @@ protected Object getPotentiallyConvertedSimpleRead(Object value, TypeInformation
10291029
* @return the converted value.
10301030
*/
10311031
@SuppressWarnings({ "rawtypes", "unchecked" })
1032-
private Object getPotentiallyConvertedSimpleRead(Object value, @Nullable Class<?> target) {
1032+
private Object getPotentiallyConvertedSimpleRead(@Nullable Object value, @Nullable Class<?> target) {
10331033

10341034
if (value == null || target == null
1035-
|| ClassUtils.resolvePrimitiveIfNecessary(target).isAssignableFrom(value.getClass())) {
1035+
|| ClassUtils.isAssignableValue(target, value)) {
10361036
return value;
10371037
}
10381038

0 commit comments

Comments
 (0)