Skip to content

Commit 42c88c9

Browse files
committed
Add release notes, re-order imports slightly
1 parent dfee9f6 commit 42c88c9

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

avro/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Mapping to Avro type and logical type involves these steps:
141141
| `java.time.LocalDate` | NumberType.INT | `{"type": "int", "logicalType": "date"}` |
142142
| `java.time.LocalTime` | NumberType.INT | `{"type": "int", "logicalType": "time-millis"}` |
143143
| `java.time.LocalDateTime` | NumberType.LONG | `{"type": "long", "logicalType": "local-timestamp-millis"}` |
144-
| `java.util.UUID` | | `{"type": "fixed", "name": "UUID", "namespace": "java.util", "size": 16, "logicalType" : "uuid"}` |
144+
| `java.util.UUID` (2.19+) | | `{"type": "fixed", "name": "UUID", "namespace": "java.util", "size": 16, "logicalType" : "uuid"}` |
145145

146146
_Provided Avro logical type generation is enabled._
147147

avro/src/main/java/com/fasterxml/jackson/dataformat/avro/schema/UUIDVisitor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package com.fasterxml.jackson.dataformat.avro.schema;
22

3+
import java.util.Set;
4+
35
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonStringFormatVisitor;
46
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat;
7+
58
import org.apache.avro.LogicalTypes;
69
import org.apache.avro.Schema;
710

8-
import java.util.Set;
9-
1011
/**
1112
* Visitor for {@link java.util.UUID} type. When it is created with logicalTypesEnabled enabled,
1213
* Avro schema is created with logical type uuid.

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/schema/UUIDVisitor_builtAvroSchemaTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.fasterxml.jackson.dataformat.avro.schema;
22

3+
import org.junit.Test;
4+
35
import org.apache.avro.LogicalType;
46
import org.apache.avro.Schema;
5-
import org.junit.Test;
67

78
import static org.assertj.core.api.Assertions.assertThat;
89

release-notes/CREDITS-2.x

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ Michal Foksa (MichalFoksa@github)
225225
* Contributed #494: Avro Schema generation: allow mapping Java Enum properties to
226226
Avro String values
227227
(2.18.0)
228+
* Contributed #536: (avro) Add Logical Type support for `java.util.UUID`
229+
(2.19.0)
228230

229231
Hunter Herman (hherman1@github)
230232

release-notes/VERSION-2.x

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Active maintainers:
1414
=== Releases ===
1515
------------------------------------------------------------------------
1616

17+
2.19.0 (not yet released)
18+
19+
#536: (avro) Add Logical Type support for `java.util.UUID`
20+
(contributed by Michal F)
21+
1722
2.18.2 (27-Nov-2024)
1823

1924
No changes since 2.18.1

0 commit comments

Comments
 (0)