From 14006dc0109fda86bdcfe1bc4527e117bfa6c0ee Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Thu, 12 Dec 2024 17:31:02 -0800 Subject: [PATCH] Move `@AvroFixedSize` type under "annotations" package --- .../jackson/dataformat/avro/{ => annotation}/AvroFixedSize.java | 2 +- .../tools/jackson/dataformat/avro/schema/RecordVisitor.java | 2 +- .../dataformat/avro/schema/AvroSchemaGenerationTest.java | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) rename avro/src/main/java/tools/jackson/dataformat/avro/{ => annotation}/AvroFixedSize.java (94%) diff --git a/avro/src/main/java/tools/jackson/dataformat/avro/AvroFixedSize.java b/avro/src/main/java/tools/jackson/dataformat/avro/annotation/AvroFixedSize.java similarity index 94% rename from avro/src/main/java/tools/jackson/dataformat/avro/AvroFixedSize.java rename to avro/src/main/java/tools/jackson/dataformat/avro/annotation/AvroFixedSize.java index be1111e50..59817a47f 100644 --- a/avro/src/main/java/tools/jackson/dataformat/avro/AvroFixedSize.java +++ b/avro/src/main/java/tools/jackson/dataformat/avro/annotation/AvroFixedSize.java @@ -1,4 +1,4 @@ -package tools.jackson.dataformat.avro; +package tools.jackson.dataformat.avro.annotation; import java.lang.annotation.*; diff --git a/avro/src/main/java/tools/jackson/dataformat/avro/schema/RecordVisitor.java b/avro/src/main/java/tools/jackson/dataformat/avro/schema/RecordVisitor.java index bc315c429..4755e6024 100644 --- a/avro/src/main/java/tools/jackson/dataformat/avro/schema/RecordVisitor.java +++ b/avro/src/main/java/tools/jackson/dataformat/avro/schema/RecordVisitor.java @@ -16,8 +16,8 @@ import tools.jackson.databind.jsontype.NamedType; import tools.jackson.databind.ser.BeanPropertyWriter; import tools.jackson.dataformat.avro.AvroFactory; -import tools.jackson.dataformat.avro.AvroFixedSize; import tools.jackson.dataformat.avro.AvroWriteFeature; +import tools.jackson.dataformat.avro.annotation.AvroFixedSize; import tools.jackson.dataformat.avro.ser.CustomEncodingSerializer; public class RecordVisitor diff --git a/avro/src/test/java/tools/jackson/dataformat/avro/schema/AvroSchemaGenerationTest.java b/avro/src/test/java/tools/jackson/dataformat/avro/schema/AvroSchemaGenerationTest.java index 513c404e8..16e780116 100644 --- a/avro/src/test/java/tools/jackson/dataformat/avro/schema/AvroSchemaGenerationTest.java +++ b/avro/src/test/java/tools/jackson/dataformat/avro/schema/AvroSchemaGenerationTest.java @@ -10,6 +10,7 @@ import tools.jackson.databind.exc.InvalidDefinitionException; import tools.jackson.dataformat.avro.*; +import tools.jackson.dataformat.avro.annotation.AvroFixedSize; import org.apache.avro.JsonProperties; import org.apache.avro.Schema;