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:
Enimiste 2023-02-04 15:05:28 +01:00 committed by Moritz Halbritter
parent 33288493aa
commit d6032c9d2c

View File

@ -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;