File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
core/src/main/java/org/testcontainers/images/builder Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
import com .github .dockerjava .api .model .BuildResponseItem ;
7
7
import com .github .dockerjava .core .command .BuildImageResultCallback ;
8
8
import com .google .common .collect .Sets ;
9
+ import lombok .Cleanup ;
9
10
import lombok .Getter ;
10
11
import lombok .extern .slf4j .Slf4j ;
11
12
import org .apache .commons .compress .archivers .tar .TarArchiveEntry ;
@@ -113,8 +114,8 @@ public void onNext(BuildResponseItem item) {
113
114
};
114
115
115
116
// We have to use pipes to avoid high memory consumption since users might want to build really big images
116
- PipedInputStream in = new PipedInputStream ();
117
- PipedOutputStream out = new PipedOutputStream (in );
117
+ @ Cleanup PipedInputStream in = new PipedInputStream ();
118
+ @ Cleanup PipedOutputStream out = new PipedOutputStream (in );
118
119
119
120
profiler .start ("Configure image" );
120
121
BuildImageCmd buildImageCmd = dockerClient .buildImageCmd (in );
You can’t perform that action at this time.
0 commit comments