Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imp serialization. #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.Serializable;

public class JsonAvroConverter {
public class JsonAvroConverter implements Serializable {
private static final long serialVersionUID = 9007270280918300540L;
private JsonGenericRecordReader recordReader;

public JsonAvroConverter() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package tech.allegro.schema.json2avro.converter;

import java.io.Serializable;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import org.apache.avro.AvroRuntimeException;
Expand All @@ -24,8 +25,9 @@
import static tech.allegro.schema.json2avro.converter.AvroTypeExceptions.typeException;
import static tech.allegro.schema.json2avro.converter.AvroTypeExceptions.unionException;

public class JsonGenericRecordReader {
public class JsonGenericRecordReader implements Serializable {
private static final Object INCOMPATIBLE = new Object();
private static final long serialVersionUID = 4645457833824828111L;
private final ObjectMapper mapper;
private final UnknownFieldListener unknownFieldListener;

Expand Down