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