From 623b3ab96ec9480d70bd58f726d401807b974603 Mon Sep 17 00:00:00 2001 From: XenoAmess Date: Fri, 3 Jul 2020 18:34:06 +0800 Subject: [PATCH 1/2] Remove redundant close() call from JarResourceManagerTests See gh-22213 --- .../boot/web/embedded/undertow/JarResourceManagerTests.java | 1 - 1 file changed, 1 deletion(-) 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); } From 3c7f54b97f90c56fb63353cbb7ccf1fbc9887f0e Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 7 Jul 2020 10:17:22 +0100 Subject: [PATCH 2/2] Polish "Remove redundant close() call from JarResourceManagerTests" See gh-22213 --- .../boot/web/embedded/undertow/JarResourceManagerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 159b1c515b..08785965dc 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 @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.