Skip to content

Commit 2d00b3d

Browse files
committed
javadoc improvements
1 parent 60444ca commit 2d00b3d

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

avro/src/main/java/com/fasterxml/jackson/dataformat/avro/AvroTypeDeserializer.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
import com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase;
1414
import com.fasterxml.jackson.dataformat.avro.schema.AvroSchemaHelper;
1515

16-
public class AvroTypeDeserializer extends TypeDeserializerBase {
16+
/**
17+
* @since 2.9
18+
*/
19+
public class AvroTypeDeserializer extends TypeDeserializerBase
20+
{
21+
private static final long serialVersionUID = 1L;
1722

1823
protected AvroTypeDeserializer(JavaType baseType, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible,
1924
JavaType defaultImpl) {

avro/src/main/java/com/fasterxml/jackson/dataformat/avro/AvroTypeIdResolver.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
/**
1616
* {@link com.fasterxml.jackson.databind.jsontype.TypeIdResolver} for Avro type IDs embedded in schemas. Avro generally uses class names,
1717
* but we want to also support named subtypes so that developers can easily remap the embedded type IDs to a different runtime class.
18+
*
19+
* @since 2.9
1820
*/
19-
public class AvroTypeIdResolver extends ClassNameIdResolver {
20-
21+
public class AvroTypeIdResolver extends ClassNameIdResolver
22+
{
2123
private final Map<String, Class<?>> _idTypes = new HashMap<>();
2224

2325
private final Map<Class<?>, String> _typeIds = new HashMap<>();

avro/src/main/java/com/fasterxml/jackson/dataformat/avro/AvroTypeResolverBuilder.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
import com.fasterxml.jackson.databind.jsontype.TypeSerializer;
1313
import com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder;
1414

15-
15+
/**
16+
* @since 2.9
17+
*/
1618
public class AvroTypeResolverBuilder extends StdTypeResolverBuilder {
1719

1820
public AvroTypeResolverBuilder() {

avro/src/main/java/com/fasterxml/jackson/dataformat/avro/AvroUntypedDeserializer.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@
1717
* for native type information when handling scalar values, but Avro sometimes includes type information in the schema for scalar values;
1818
* This subclass checks for the presence of valid type information and calls out to the type deserializer even for scalar values. The
1919
* same goes for map keys.
20+
*
21+
* @since 2.9
2022
*/
21-
public class AvroUntypedDeserializer extends UntypedObjectDeserializer {
23+
public class AvroUntypedDeserializer extends UntypedObjectDeserializer
24+
{
25+
private static final long serialVersionUID = 1L;
26+
27+
public AvroUntypedDeserializer() { super(); }
2228

2329
@Override
2430
public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {

0 commit comments

Comments
 (0)