Partially revert e1200f34e7

Syntax for this try-with-resources use case only permitted on Java 9+.
This commit is contained in:
Sam Brannen 2022-01-04 16:20:55 +01:00
parent c3ce4f0f90
commit c04fa858fc
1 changed files with 4 additions and 1 deletions

View File

@ -62,9 +62,12 @@ class MetadataStore {
private CandidateComponentsMetadata readMetadata(InputStream in) throws IOException {
try (in) {
try {
return PropertiesMarshaller.read(in);
}
finally {
in.close();
}
}
private FileObject getMetadataResource() throws IOException {