From: tkogut Date: Thu, 17 Sep 2020 07:34:12 +0000 (+0200) Subject: [OOM-CPMv2] Fix sonar issue X-Git-Tag: 2.1.0~11^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=578129121934e0ee92fe26de52871cf9783dcce2;p=oom%2Fplatform%2Fcert-service.git [OOM-CPMv2] Fix sonar issue Remove the declarations of thrown exceptions Issue-ID: OOM-2526 Signed-off-by: tkogut Change-Id: Ie2586fee1f5542e9344b1044b5db4316f7a8a7cb --- 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