BinaryResultSubject: Remove unnecessary resource warning suppression

Change-Id: I5fbd7329aca2ebe6732ca5912861fdd061cb10ce
This commit is contained in:
David Pursehouse 2017-01-28 15:41:25 +09:00
parent 40ef1b6f37
commit 83bb19bd9a

View File

@ -62,7 +62,6 @@ public class BinaryResultSubject
// We shouldn't close the BinaryResult within this method as it might still
// be used afterwards. Besides, closing it doesn't have an effect for most
// implementations of a BinaryResult.
@SuppressWarnings("resource")
BinaryResult binaryResult = actual();
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
binaryResult.writeTo(byteArrayOutputStream);