Skip to content

Commit

Permalink
Minor clean up thing wrt #449 unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 9, 2024
1 parent f0445ad commit c065e08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static class RootType {

@Test
public void testFuzz65618IOOBE() throws Exception {
final AvroFactory factory = AvroFactory.builderWithApacheDecoder().build();
final AvroFactory factory = AvroFactory.builderWithNativeDecoder().build();
final AvroMapper mapper = new AvroMapper(factory);

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

final AvroSchema schema = mapper.schemaFor(RootType.class);
try (AvroParser p = factory.createParser(doc)) {
try (AvroParser p = (AvroParser) mapper.createParser(doc)) {
p.setSchema(schema);
assertToken(JsonToken.START_OBJECT, p.nextToken());
assertToken(JsonToken.FIELD_NAME, p.nextToken());
Expand Down

0 comments on commit c065e08

Please sign in to comment.