accidentally introduced during sonar change
Issue-ID: AAI-237
Change-Id: Ibd806042c09073bf7f4f24b6f842aa863af0a617
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
}
private void loadGraph(String name, String configPath) throws AAIException {
}
private void loadGraph(String name, String configPath) throws AAIException {
- try (TitanGraph graph = TitanFactory.open(configPath);
- InputStream is = new FileInputStream(configPath)) {
+ // Graph being opened by TitanFactory is being placed in hashmap to be used later
+ // These graphs shouldn't be closed until the application shutdown
+ TitanGraph graph = TitanFactory.open(configPath);
+ try (InputStream is = new FileInputStream(configPath)) {
Properties graphProps = new Properties();
graphProps.load(is);
Properties graphProps = new Properties();
graphProps.load(is);
throw new AAIException("AAI_4001");
} catch (IOException e) {
throw new AAIException("AAI_4002");
throw new AAIException("AAI_4001");
} catch (IOException e) {
throw new AAIException("AAI_4002");