Skip to content

Commit

Permalink
Fix for Java 8
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <[email protected]>
  • Loading branch information
arthurscchan committed Dec 27, 2023
1 parent 4c47b75 commit b0458aa
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.fasterxml.jackson.dataformat.ion.fuzz;

import java.io.InputStream;
import java.io.*;

import org.hamcrest.Matchers;
import org.junit.Test;
Expand All @@ -15,9 +15,6 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

import java.io.*;
import java.nio.file.*;

// [dataformats-binary#434
public class Fuzz434_65268_65274_NPETest
{
Expand Down Expand Up @@ -48,7 +45,8 @@ public void testFuzz65274() throws Exception {
.build();

try (InputStream in = getClass().getResourceAsStream("/data/fuzz-65274.ion")) {
byte[] invalid = in.readAllBytes();
byte[] invalid = new byte[in.available()];
new DataInputStream(in).readFully(invalid);
try (JsonParser p = MAPPER.getFactory().createParser(new ByteArrayInputStream(invalid))) {
MAPPER.readTree(p);
}
Expand Down

0 comments on commit b0458aa

Please sign in to comment.