Skip to content

Commit

Permalink
chore: whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
keturn committed Nov 6, 2021
1 parent 9c5cbea commit 5cfebbe
Showing 1 changed file with 7 additions and 9 deletions.
Expand Up @@ -184,15 +184,13 @@ public Optional<T> deserialize(PersistedData data) {
}

TypeHandler<T> runtimeTypeHandler =
(TypeHandler<T>) typeHandlerLibrary.getTypeHandler(typeToDeserializeAs.get())
// To avoid compile errors in the orElseGet
.map(typeHandler -> (TypeHandler) typeHandler)
.orElseGet(() -> {
LOGGER.warn("Cannot find TypeHandler for runtime type '{}', " +
"deserializing as base type '{}'",
runtimeTypeName, typeInfo);
return delegateHandler;
});
(TypeHandler<T>) typeHandlerLibrary.getTypeHandler(typeToDeserializeAs.get())
.orElseGet(() -> {
LOGGER.warn("Cannot find TypeHandler for runtime type '{}', " +
"deserializing as base type '{}'",
runtimeTypeName, typeInfo);
return delegateHandler;
});

PersistedData valueData;

Expand Down

0 comments on commit 5cfebbe

Please sign in to comment.