diff options
author | Dan Timoney <dt5972@att.com> | 2018-07-13 20:10:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-07-13 20:10:28 +0000 |
commit | 3c36ac2ba101ec0cc596c15bfd45efcc731f442f (patch) | |
tree | e28eeea5a2995a34e9e9f52e20fc80564bae808e | |
parent | 13f987af48136ab3a3a24434782e984b7c0d25e8 (diff) | |
parent | 880929c1d62cc06e2a2c24c9426d3b4c52cb0f56 (diff) |
Merge "Fix sonar issue in AAIClientRESTExecutor"
-rwxr-xr-x | aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIClientRESTExecutor.java | 3 |
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 b6eacb7af..aa134cb4a 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); |