Skip to content

Commit a87fb9a

Browse files
authored
Revert "Explicitly close input stream." (#217)
Reverts #216 Integration tests fails when we close input stream explicitly. We need to dive deeper here before we can merge this change.
1 parent c942672 commit a87fb9a

File tree

1 file changed

+0
-2
lines changed
  • input-stream/src/main/java/software/amazon/s3/analyticsaccelerator/util

1 file changed

+0
-2
lines changed

input-stream/src/main/java/software/amazon/s3/analyticsaccelerator/util/StreamUtils.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ public static byte[] toByteArray(ObjectContent objectContent) {
4343
while ((numBytesRead = inStream.read(buffer, 0, buffer.length)) != -1) {
4444
outStream.write(buffer, 0, numBytesRead);
4545
}
46-
47-
inStream.close();
4846
} catch (IOException e) {
4947
throw new RuntimeException(e);
5048
}

0 commit comments

Comments
 (0)