Partially revert e1200f34e7
Syntax for this try-with-resources use case only permitted on Java 9+.
This commit is contained in:
parent
c3ce4f0f90
commit
c04fa858fc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue