Skip to content

Commit 10d2300

Browse files
committed
Merge branch '2.18' into 2.19
2 parents ae1b570 + e63aa3c commit 10d2300

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ protected JsonMappingException _invalidSchemaDefinition(JavaType type,
232232
public AvroSchema schemaFrom(InputStream in) throws IOException
233233
{
234234
try {
235-
return new AvroSchema(new Schema.Parser().setValidate(true)
235+
return new AvroSchema(new Schema.Parser()
236236
.parse(in));
237237
} finally {
238238
in.close();
@@ -249,7 +249,7 @@ public AvroSchema schemaFrom(InputStream in) throws IOException
249249
*/
250250
public AvroSchema schemaFrom(String schemaAsString) throws IOException
251251
{
252-
return new AvroSchema(new Schema.Parser().setValidate(true)
252+
return new AvroSchema(new Schema.Parser()
253253
.parse(schemaAsString));
254254
}
255255

@@ -263,7 +263,7 @@ public AvroSchema schemaFrom(String schemaAsString) throws IOException
263263
*/
264264
public AvroSchema schemaFrom(File schemaFile) throws IOException
265265
{
266-
return new AvroSchema(new Schema.Parser().setValidate(true)
266+
return new AvroSchema(new Schema.Parser()
267267
.parse(schemaFile));
268268
}
269269
}

avro/src/test/java/perf/PerfBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ protected GenericRecord itemToRecord(MediaItem item) throws IOException
137137
}
138138

139139
protected static AvroSchema itemSchema() {
140-
return new AvroSchema(new Schema.Parser().setValidate(true).parse(JVM_SERIALIZERS_SCHEMA_STR));
140+
return new AvroSchema(new Schema.Parser().parse(JVM_SERIALIZERS_SCHEMA_STR));
141141
}
142142

143143
protected static MediaItem buildItem()

release-notes/VERSION-2.x

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ No changes since 2.19.1
7272

7373
2.18.6 (not yet released)
7474

75+
#645: (avro) Remove use of Avro `Schema.Parser().setValidate()` to allow
76+
use of Avro core 1.12.1 (2.x)
7577
#649: (cbor, smile) `StreamReadConstraints.maxDocumentLength` not checked
7678
when creating parser with fixed buffer
7779

0 commit comments

Comments
 (0)