aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-07-13 20:10:28 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-13 20:10:28 +0000
commit3c36ac2ba101ec0cc596c15bfd45efcc731f442f (patch)
treee28eeea5a2995a34e9e9f52e20fc80564bae808e
parent13f987af48136ab3a3a24434782e984b7c0d25e8 (diff)
parent880929c1d62cc06e2a2c24c9426d3b4c52cb0f56 (diff)
Merge "Fix sonar issue in AAIClientRESTExecutor"
-rwxr-xr-xaai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java
index b6eacb7a..aa134cb4 100755
--- a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java
+++ b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java
@@ -138,11 +138,10 @@ public class AAIClientRESTExecutor implements AAIExecutorInterface {
ctx = SSLContext.getInstance("TLS");
KeyManagerFactory kmf = null;
- try {
+ try (FileInputStream fin = new FileInputStream(keystorePath)){
String storeType = "PKCS12";
String def = KeyStore.getDefaultType();
kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
- FileInputStream fin = new FileInputStream(keystorePath);
String extension = keystorePath.substring(keystorePath.lastIndexOf(".") + 1);