Skip to content

Commit b4c51a6

Browse files
committed
1 parent 643b283 commit b4c51a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/apache/commons/imaging/bytesource/InputStreamByteSource.java

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ public long skip(final long n) throws IOException {
180180
this.inputStream = new BufferedInputStream(inputStream);
181181
}
182182

183+
@SuppressWarnings("resource") // accesses input stream more than once, don't close here.
183184
@Override
184185
public byte[] getByteArray(final long position, final int length) throws IOException {
185186
// We include a separate check for int overflow.

0 commit comments

Comments
 (0)