BinaryResultSubject: Remove unnecessary resource warning suppression
Change-Id: I5fbd7329aca2ebe6732ca5912861fdd061cb10ce
This commit is contained in:
@@ -62,7 +62,6 @@ public class BinaryResultSubject
|
|||||||
// We shouldn't close the BinaryResult within this method as it might still
|
// 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
|
// be used afterwards. Besides, closing it doesn't have an effect for most
|
||||||
// implementations of a BinaryResult.
|
// implementations of a BinaryResult.
|
||||||
@SuppressWarnings("resource")
|
|
||||||
BinaryResult binaryResult = actual();
|
BinaryResult binaryResult = actual();
|
||||||
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
||||||
binaryResult.writeTo(byteArrayOutputStream);
|
binaryResult.writeTo(byteArrayOutputStream);
|
||||||
|
Reference in New Issue
Block a user