Skip to content

Commit

Permalink
AVRO-2282: avoid calling deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
clesaec authored and dkulp committed Jul 31, 2023
1 parent 6be1b1f commit 57de8a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private String fromAvroToJson(byte[] avroBytes, Schema schema, boolean includeNa

@Test
public void testJsonEncoderInitAutoFlush() throws IOException {
Schema s = Schema.parse("\"int\"");
Schema s = new Schema.Parser().parse("\"int\"");
OutputStream baos = new ByteArrayOutputStream();
OutputStream out = new BufferedOutputStream(baos);
JsonEncoder enc = factory.jsonEncoder(s, out, false);
Expand Down

0 comments on commit 57de8a9

Please sign in to comment.