mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
Partially revert e1200f34e7
Syntax for this try-with-resources use case only permitted on Java 9+.
This commit is contained in:
+4
-1
@@ -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