mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Ensure file is closed
Removed useless catch block that just rethrows the same exception Change-Id: If3e4faea1ed889d4f7b39a7cff786e0aa9a6803d Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
This commit is contained in:
parent
222a963f44
commit
5d91f6f847
1 changed files with 1 additions and 4 deletions
|
@ -1915,8 +1915,7 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
}
|
}
|
||||||
|
|
||||||
// So there is a project file, load the information there
|
// So there is a project file, load the information there
|
||||||
InputStream stream = new FileInputStream(cdtbuild);
|
try (InputStream stream = new FileInputStream(cdtbuild)) {
|
||||||
try {
|
|
||||||
DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
|
DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
|
||||||
Document document = parser.parse(stream);
|
Document document = parser.parse(stream);
|
||||||
String fileVersion = null;
|
String fileVersion = null;
|
||||||
|
@ -2030,8 +2029,6 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
//project.setSessionProperty(buildInfoProperty, buildInfo);
|
//project.setSessionProperty(buildInfoProperty, buildInfo);
|
||||||
setLoaddedBuildInfo(project, buildInfo);
|
setLoaddedBuildInfo(project, buildInfo);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buildInfo.setValid(true);
|
buildInfo.setValid(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue