From d6032c9d2c95d99d79a53007123371ab5c51c9f0 Mon Sep 17 00:00:00 2001 From: Enimiste Date: Sat, 4 Feb 2023 15:05:28 +0100 Subject: [PATCH] Remove inputStream.close() line to conform to the interface The "ReproducibleResourceTransformer" interface says that "An input stream for the resource, the implementation should *not* close this stream". See gh-34063 --- .../boot/maven/PropertiesMergingResourceTransformer.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/PropertiesMergingResourceTransformer.java b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/PropertiesMergingResourceTransformer.java index a553fc8298f..7b6a4185fa2 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/PropertiesMergingResourceTransformer.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/PropertiesMergingResourceTransformer.java @@ -69,7 +69,6 @@ public class PropertiesMergingResourceTransformer implements ReproducibleResourc throws IOException { Properties properties = new Properties(); properties.load(inputStream); - inputStream.close(); properties.forEach((name, value) -> process((String) name, (String) value)); if (time > this.time) { this.time = time;