mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
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
This commit is contained in:
parent
33288493aa
commit
d6032c9d2c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user