MINOR: Remove duplicated code in PgeViewDemo (#20252)
CI / build (push) Waiting to run Details

Remove the default implementation

Reviewers: Lucas Brutschy <lucasbru@apache.org>
This commit is contained in:
Jinhe Zhang 2025-07-29 12:18:38 -04:00 committed by GitHub
parent 96c8e86cdf
commit 81bdf0b889
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 21 deletions

View File

@ -40,7 +40,6 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
import java.io.IOException;
import java.time.Duration;
import java.util.Map;
import java.util.Properties;
/**
@ -64,11 +63,6 @@ public class PageViewUntypedDemo {
public static class JsonNodeSerializer implements Serializer<JsonNode> {
private final ObjectMapper objectMapper = new ObjectMapper();
@Override
public void configure(final Map<String, ?> configs, final boolean isKey) {
// No configuration needed
}
@Override
public byte[] serialize(final String topic, final JsonNode data) {
if (data == null) {
@ -80,11 +74,6 @@ public class PageViewUntypedDemo {
throw new SerializationException("Error serializing JSON message", e);
}
}
@Override
public void close() {
// No resources to close
}
}
/**
@ -93,11 +82,6 @@ public class PageViewUntypedDemo {
public static class JsonNodeDeserializer implements Deserializer<JsonNode> {
private final ObjectMapper objectMapper = new ObjectMapper();
@Override
public void configure(final Map<String, ?> configs, final boolean isKey) {
// No configuration needed
}
@Override
public JsonNode deserialize(final String topic, final byte[] data) {
if (data == null) {
@ -109,11 +93,6 @@ public class PageViewUntypedDemo {
throw new SerializationException("Error deserializing JSON message", e);
}
}
@Override
public void close() {
// No resources to close
}
}
public static void main(final String[] args) throws Exception {