We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b6e531 commit 8cc5a2eCopy full SHA for 8cc5a2e
src/com/inet/gradle/setup/msi/MsiLocalizedResource.java
@@ -2,6 +2,7 @@
2
3
import java.io.File;
4
import java.io.IOException;
5
+import java.io.InputStream;
6
import java.nio.charset.StandardCharsets;
7
import java.nio.file.Files;
8
import java.nio.file.StandardOpenOption;
@@ -68,7 +69,9 @@ public File getResource() {
68
69
70
wxlFile.getParentFile().mkdirs();
71
Properties props = new Properties();
- props.load( Files.newInputStream( input.toPath() ) );
72
+ try ( InputStream stream = Files.newInputStream( input.toPath() ) ) {
73
+ props.load( stream );
74
+ }
75
76
StringBuilder builder = new StringBuilder();
77
builder.append( "<?xml version='1.0'?>\n" );
0 commit comments