Skip to content

Commit c065e08

Browse files
committed
Minor clean up thing wrt #449 unit test
1 parent f0445ad commit c065e08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

avro/src/test/java/com/fasterxml/jackson/dataformat/avro/fuzz/AvroFuzz449_65618_IOOBETest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static class RootType {
2222

2323
@Test
2424
public void testFuzz65618IOOBE() throws Exception {
25-
final AvroFactory factory = AvroFactory.builderWithApacheDecoder().build();
25+
final AvroFactory factory = AvroFactory.builderWithNativeDecoder().build();
2626
final AvroMapper mapper = new AvroMapper(factory);
2727

2828
final byte[] doc = {
@@ -32,7 +32,7 @@ public void testFuzz65618IOOBE() throws Exception {
3232
};
3333

3434
final AvroSchema schema = mapper.schemaFor(RootType.class);
35-
try (AvroParser p = factory.createParser(doc)) {
35+
try (AvroParser p = (AvroParser) mapper.createParser(doc)) {
3636
p.setSchema(schema);
3737
assertToken(JsonToken.START_OBJECT, p.nextToken());
3838
assertToken(JsonToken.FIELD_NAME, p.nextToken());

0 commit comments

Comments
 (0)