Skip to content

Commit b3aed51

Browse files
authored
Don't close incoming InputStream (#251)
* don't close incoming stream * Update JdkContext.java
1 parent d197acb commit b3aed51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avaje-jex/src/main/java/io/avaje/jex/core/JdkContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ public void write(byte[] bufferBytes, int length) {
520520

521521
@Override
522522
public void write(InputStream is) {
523-
try (is; var os = outputStream()) {
523+
try (var os = outputStream()) {
524524
is.transferTo(os);
525525
} catch (IOException e) {
526526
throw new UncheckedIOException(e);

0 commit comments

Comments
 (0)