diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/JarResourceManagerTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/JarResourceManagerTests.java index 27052314b0..159b1c515b 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/JarResourceManagerTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/JarResourceManagerTests.java @@ -45,7 +45,6 @@ class JarResourceManagerTests { try (JarOutputStream out = new JarOutputStream(new FileOutputStream(jar))) { out.putNextEntry(new ZipEntry("hello.txt")); out.write("hello".getBytes()); - out.close(); } this.resourceManager = new JarResourceManager(jar); }