Skip to content

Commit cc90a08

Browse files
committed
Merge pull request #50639 from SebTardif
* close-inspecting-output-stream: Close FileOutputStream delegate in InspectingOutputStream Closes gh-50639
2 parents 3cafe9b + eaf4a0a commit cc90a08

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/io

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/io/InspectedContent.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ private InspectingOutputStream(Inspector[] inspectors) {
146146
this.delegate = new ByteArrayOutputStream();
147147
}
148148

149+
@Override
150+
public void close() throws IOException {
151+
this.delegate.close();
152+
}
153+
149154
@Override
150155
public void write(int b) throws IOException {
151156
this.singleByteBuffer[0] = (byte) (b & 0xFF);

0 commit comments

Comments
 (0)