Skip to content

Commit

Permalink
Minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Apr 25, 2021
1 parent 1161d5d commit 02f1a05
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import com.fasterxml.jackson.databind.type.TypeFactory;
import com.fasterxml.jackson.databind.util.ClassUtil;
import com.fasterxml.jackson.databind.util.Converter;
import com.fasterxml.jackson.module.jakarta.xmlbind.deser.DataHandlerJsonDeserializer;
import com.fasterxml.jackson.module.jakarta.xmlbind.ser.DataHandlerJsonSerializer;
import com.fasterxml.jackson.module.jakarta.xmlbind.deser.DataHandlerDeserializer;
import com.fasterxml.jackson.module.jakarta.xmlbind.ser.DataHandlerSerializer;

/**
* Annotation introspector that uses Jakarta Xml Bind annotations
Expand Down Expand Up @@ -138,8 +138,8 @@ public JakartaXmlBindAnnotationIntrospector(TypeFactory typeFactory, boolean ign
/// Data handlers included dynamically, to try to prevent issues on
// platforms with less than complete support for JAXB API
try {
dataHandlerSerializer = (JsonSerializer<?>) DataHandlerJsonSerializer.class.newInstance();
dataHandlerDeserializer = (JsonDeserializer<?>) DataHandlerJsonDeserializer.class.newInstance();
dataHandlerSerializer = (JsonSerializer<?>) DataHandlerSerializer.class.newInstance();
dataHandlerDeserializer = (JsonDeserializer<?>) DataHandlerDeserializer.class.newInstance();
} catch (Throwable e) {
//dataHandlers not supported...
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer;

public class DataHandlerJsonDeserializer
public class DataHandlerDeserializer
extends StdScalarDeserializer<DataHandler>
{
private static final long serialVersionUID = 1L;

public DataHandlerJsonDeserializer() { super(DataHandler.class); }
public DataHandlerDeserializer() { super(DataHandler.class); }

@Override
public DataHandler deserialize(JsonParser p, DeserializationContext ctxt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper;
import com.fasterxml.jackson.databind.node.ObjectNode;

public class DataHandlerJsonSerializer extends StdSerializer<DataHandler>
public class DataHandlerSerializer extends StdSerializer<DataHandler>
{
private static final long serialVersionUID = 1L;

public DataHandlerJsonSerializer() { super(DataHandler.class); }
public DataHandlerSerializer() { super(DataHandler.class); }

@Override
public void serialize(DataHandler value, JsonGenerator jgen, SerializerProvider provider)
Expand Down

This file was deleted.

0 comments on commit 02f1a05

Please sign in to comment.