Skip to content

Commit d6032c9

Browse files
enimistemhalbritter
authored andcommitted
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
1 parent 3328849 commit d6032c9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/PropertiesMergingResourceTransformer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public void processResource(String resource, InputStream inputStream, List<Reloc
6969
throws IOException {
7070
Properties properties = new Properties();
7171
properties.load(inputStream);
72-
inputStream.close();
7372
properties.forEach((name, value) -> process((String) name, (String) value));
7473
if (time > this.time) {
7574
this.time = time;

0 commit comments

Comments
 (0)