Skip to content

Commit

Permalink
Revert "GEN-213: adding support to duplicate keys in JSON for ObjectN…
Browse files Browse the repository at this point in the history
…odePublisher."

This reverts commit 4874636.
  • Loading branch information
Aravinda Baliga B committed Jan 6, 2025
1 parent 2a60780 commit fefe26f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import java.io.IOException;
Expand All @@ -36,15 +35,12 @@
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.AtomicReference;

import io.openepcis.reactive.publisher.util.JsonNodeDupeFieldHandlingDeserializer;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ObjectNodePublisher<T extends ObjectNode> implements Publisher<T> {
private static final ObjectMapper mapper =
new ObjectMapper().registerModule(new JavaTimeModule())
.registerModule(new SimpleModule().addDeserializer(JsonNode.class, new JsonNodeDupeFieldHandlingDeserializer()));
new ObjectMapper().registerModule(new JavaTimeModule());
private static final JsonFactory jsonFactory = new JsonFactory();
private final ObjectNode header = mapper.createObjectNode();
private final JsonParser jsonParser;
Expand Down

This file was deleted.

0 comments on commit fefe26f

Please sign in to comment.