Skip to content

Commit

Permalink
TCK Close the original stream of setEntityStream (jakartaee#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez authored Dec 12, 2023
1 parent 3a41a4d commit 33c933f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ public synchronized void write(byte[] b, int off, int len)
write(b);
}

@Override
public void close() throws IOException {
stream.close();
}

public final byte[] intToByteArray(int value) {
return new byte[] { (byte) (value & 0xff) };
}
Expand Down

0 comments on commit 33c933f

Please sign in to comment.