Skip to content

Commit 68f6081

Browse files
committed
Merge branch '3.5.x'
Closes gh-47910
2 parents a3ba9e3 + affb9d6 commit 68f6081

File tree

1 file changed

+2
-5
lines changed
  • build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling

1 file changed

+2
-5
lines changed

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootZipCopyAction.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,8 @@ private void writeJarToolsIfNecessary() throws IOException {
324324

325325
private void writeJarModeLibrary(String location, JarModeLibrary library) throws IOException {
326326
String name = location + library.getName();
327-
writeEntry(name, ZipEntryContentWriter.fromInputStream(library.openStream()), false, (entry) -> {
328-
try (InputStream in = library.openStream()) {
329-
prepareStoredEntry(library.openStream(), false, entry);
330-
}
331-
});
327+
writeEntry(name, ZipEntryContentWriter.fromInputStream(library.openStream()), false,
328+
(entry) -> prepareStoredEntry(library.openStream(), false, entry));
332329
if (BootZipCopyAction.this.layerResolver != null) {
333330
Layer layer = BootZipCopyAction.this.layerResolver.getLayer(library);
334331
Assert.state(this.layerIndex != null, "'layerIndex' must not be null");

0 commit comments

Comments
 (0)