aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortkogut <tomasz.kogut@nokia.com>2020-09-17 09:39:20 +0200
committertkogut <tomasz.kogut@nokia.com>2020-09-17 09:39:20 +0200
commitc0e7950e717d9f26a4f72a32fb72bc6369381a31 (patch)
tree9421cee6c37d1e5fada8a11f735a7f387bfb0f43
parentdbe9528c1571b97728649b54e00be6ae947c23ef (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: Ia528ba98d0a76d39ed5927fd5d23193776165024
-rw-r--r--trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/model/TruststoreFactory.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/model/TruststoreFactory.java b/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/model/TruststoreFactory.java
index b6984f36..5167c301 100644
--- a/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/model/TruststoreFactory.java
+++ b/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/model/TruststoreFactory.java
@@ -23,9 +23,6 @@ import static org.onap.oom.certservice.postprocessor.api.CertificateConstants.JK
import static org.onap.oom.certservice.postprocessor.api.CertificateConstants.PKCS12_TYPE;
import java.io.File;
-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.ExtensionResolver;
import org.onap.oom.certservice.postprocessor.merger.exception.TruststoreFileFactoryException;
@@ -41,8 +38,7 @@ public class TruststoreFactory {
private TruststoreFactory() {
}
- public static Truststore create(String truststoreFilePath, String truststorePasswordPath)
- throws TruststoreFileFactoryException, PasswordReaderException, KeystoreInstanceException, LoadTruststoreException {
+ public static Truststore create(String truststoreFilePath, String truststorePasswordPath) {
File truststoreFile = new File(truststoreFilePath);
if (!ExtensionResolver.checkIfFileExists(truststoreFile)) {
throw new TruststoreFileFactoryException(String.format(FILE_DOES_NOT_EXIST_MSG_TEMPLATE, truststoreFile));
@@ -50,8 +46,7 @@ public class TruststoreFactory {
return createTypedTruststore(truststoreFile, truststorePasswordPath);
}
- private static Truststore createTypedTruststore(File truststoreFile, String truststorePasswordPath)
- throws KeystoreInstanceException, PasswordReaderException, LoadTruststoreException, TruststoreFileFactoryException {
+ private static Truststore createTypedTruststore(File truststoreFile, String truststorePasswordPath) {
String extension = ExtensionResolver.get(truststoreFile);
switch (extension) {
case JKS_EXTENSION: