Skip to content

Commit

Permalink
javadoc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Mar 27, 2017
1 parent 60444ca commit 2d00b3d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
import com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase;
import com.fasterxml.jackson.dataformat.avro.schema.AvroSchemaHelper;

public class AvroTypeDeserializer extends TypeDeserializerBase {
/**
* @since 2.9
*/
public class AvroTypeDeserializer extends TypeDeserializerBase
{
private static final long serialVersionUID = 1L;

protected AvroTypeDeserializer(JavaType baseType, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible,
JavaType defaultImpl) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
/**
* {@link com.fasterxml.jackson.databind.jsontype.TypeIdResolver} for Avro type IDs embedded in schemas. Avro generally uses class names,
* but we want to also support named subtypes so that developers can easily remap the embedded type IDs to a different runtime class.
*
* @since 2.9
*/
public class AvroTypeIdResolver extends ClassNameIdResolver {

public class AvroTypeIdResolver extends ClassNameIdResolver
{
private final Map<String, Class<?>> _idTypes = new HashMap<>();

private final Map<Class<?>, String> _typeIds = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
import com.fasterxml.jackson.databind.jsontype.TypeSerializer;
import com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder;


/**
* @since 2.9
*/
public class AvroTypeResolverBuilder extends StdTypeResolverBuilder {

public AvroTypeResolverBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@
* for native type information when handling scalar values, but Avro sometimes includes type information in the schema for scalar values;
* This subclass checks for the presence of valid type information and calls out to the type deserializer even for scalar values. The
* same goes for map keys.
*
* @since 2.9
*/
public class AvroUntypedDeserializer extends UntypedObjectDeserializer {
public class AvroUntypedDeserializer extends UntypedObjectDeserializer
{
private static final long serialVersionUID = 1L;

public AvroUntypedDeserializer() { super(); }

@Override
public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
Expand Down

0 comments on commit 2d00b3d

Please sign in to comment.