Skip to content

Commit 7432c93

Browse files
committed
DATACMNS-1396 - Polishing.
Original pull request: #319.
1 parent 745ec26 commit 7432c93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/springframework/data/convert/CustomConversions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,11 @@ public Class<?> computeIfAbsent(Class<?> sourceType, Class<?> targetType,
394394
Function<ConvertiblePair, Class<?>> mappingFunction) {
395395

396396
TargetTypes targetTypes = customReadTargetTypes.get(sourceType);
397+
397398
if (targetTypes == null) {
398399
targetTypes = customReadTargetTypes.computeIfAbsent(sourceType, TargetTypes::new);
399400
}
401+
400402
return targetTypes.computeIfAbsent(targetType, mappingFunction);
401403
}
402404

0 commit comments

Comments
 (0)