Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion avro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ String SCHEMA_JSON = "{\n"
+" {\"name\": \"emails\", \"type\": {\"type\": \"array\", \"items\": \"string\"}},\n"
+" {\"name\": \"boss\", \"type\": [\"Employee\",\"null\"]}\n"
+"]}";
Schema raw = new Schema.Parser().setValidate(true).parse(SCHEMA_JSON);
Schema raw = new Schema.Parser().parse(SCHEMA_JSON);
AvroSchema schema = new AvroSchema(raw);
```

Expand Down
2 changes: 1 addition & 1 deletion avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ abstractions.
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
<version>1.11.5</version>
<version>1.12.1</version>
</dependency>

<!-- and for testing we need logback -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ protected JacksonException _invalidSchemaDefinition(JavaType type,
public AvroSchema schemaFrom(InputStream in) throws IOException
{
try {
return new AvroSchema(new Schema.Parser().setValidate(true)
.parse(in));
return new AvroSchema(new Schema.Parser().parse(in));
} finally {
in.close();
}
Expand All @@ -296,8 +295,7 @@ public AvroSchema schemaFrom(InputStream in) throws IOException
*/
public AvroSchema schemaFrom(String schemaAsString) throws IOException
{
return new AvroSchema(new Schema.Parser().setValidate(true)
.parse(schemaAsString));
return new AvroSchema(new Schema.Parser().parse(schemaAsString));
}

/**
Expand All @@ -308,8 +306,7 @@ public AvroSchema schemaFrom(String schemaAsString) throws IOException
*/
public AvroSchema schemaFrom(File schemaFile) throws IOException
{
return new AvroSchema(new Schema.Parser().setValidate(true)
.parse(schemaFile));
return new AvroSchema(new Schema.Parser().parse(schemaFile));
}

/*
Expand Down
2 changes: 1 addition & 1 deletion avro/src/test/java/perf/PerfBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ protected GenericRecord itemToRecord(MediaItem item) throws IOException
}

protected static AvroSchema itemSchema() {
return new AvroSchema(new Schema.Parser().setValidate(true).parse(JVM_SERIALIZERS_SCHEMA_STR));
return new AvroSchema(new Schema.Parser().parse(JVM_SERIALIZERS_SCHEMA_STR));
}

protected static MediaItem buildItem()
Expand Down
1 change: 1 addition & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ implementations)

3.1.0 (not yet released)

#514: (avro) Update to Avro 1.12.1 (Jackson 3.x only)
#598: (protobuf) Protobuf parser state handling wrong for implicit close (END_OBJECT)
(fix by @cowtowncoder, w/ Claude code)
#619: (avro, cbor, ion, smile) Add `isEnabled()` methods for format-specific features
Expand Down