diff options
author | 2020-09-17 09:34:12 +0200 | |
---|---|---|
committer | 2020-09-17 09:34:12 +0200 | |
commit | 578129121934e0ee92fe26de52871cf9783dcce2 (patch) | |
tree | a32db1e1c0f11722ccb089eff30a1f4da067d784 /trustStoreMerger | |
parent | dbe9528c1571b97728649b54e00be6ae947c23ef (diff) |
[OOM-CPMv2] Fix sonar issue
Remove the declarations of thrown exceptions
Issue-ID: OOM-2526
Signed-off-by: tkogut <tomasz.kogut@nokia.com>
Change-Id: Ie2586fee1f5542e9344b1044b5db4316f7a8a7cb
Diffstat (limited to 'trustStoreMerger')
-rw-r--r-- | trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/model/JavaTruststoreFactory.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/model/JavaTruststoreFactory.java b/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/model/JavaTruststoreFactory.java index c36510c6..4740d0f6 100644 --- a/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/model/JavaTruststoreFactory.java +++ b/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/model/JavaTruststoreFactory.java @@ -23,8 +23,6 @@ import java.io.File; import java.security.KeyStore; import java.security.KeyStoreException; import org.onap.oom.certservice.postprocessor.merger.exception.KeystoreInstanceException; -import org.onap.oom.certservice.postprocessor.merger.exception.LoadTruststoreException; -import org.onap.oom.certservice.postprocessor.merger.exception.PasswordReaderException; import org.onap.oom.certservice.postprocessor.common.PasswordReader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -36,8 +34,7 @@ public class JavaTruststoreFactory { private JavaTruststoreFactory() { } - public static Truststore create(File certFile, String truststorePasswordPath, String keystoreType) - throws LoadTruststoreException, KeystoreInstanceException, PasswordReaderException { + public static Truststore create(File certFile, String truststorePasswordPath, String keystoreType) { String password = PasswordReader.readPassword(new File(truststorePasswordPath)); try { return JavaTruststore |