|
|
|
@ -100,8 +100,7 @@ public abstract class BaseDataWithAdditionalInfo<I extends UUIDBased> extends Ba |
|
|
|
public static void setJson(JsonNode json, Consumer<JsonNode> jsonConsumer, Consumer<byte[]> bytesConsumer) { |
|
|
|
jsonConsumer.accept(json); |
|
|
|
try { |
|
|
|
byte[] jsonConsumerToBytes = json == null ? null : mapper.writeValueAsBytes(json); |
|
|
|
bytesConsumer.accept(jsonConsumerToBytes); |
|
|
|
bytesConsumer.accept(mapper.writeValueAsBytes(json)); |
|
|
|
} catch (JsonProcessingException e) { |
|
|
|
log.warn("Can't serialize json data: ", e); |
|
|
|
} |
|
|
|
|