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 bd231ec commit 6f411b7Copy full SHA for 6f411b7
metafacture-commons/src/main/java/org/metafacture/commons/ResourceUtil.java
@@ -201,7 +201,9 @@ public static URL getUrl(final File file) throws MalformedURLException {
201
*/
202
public static Properties loadProperties(final String location)
203
throws IOException {
204
- return loadProperties(getStream(location));
+ try (InputStream stream = getStream(location)) {
205
+ return loadProperties(stream);
206
+ }
207
}
208
209
/**
0 commit comments