From: tkogut Date: Thu, 17 Sep 2020 07:32:26 +0000 (+0200) Subject: [OOM-CPMv2] Fix sonar issue X-Git-Tag: 2.1.0~10^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b35136cfb568eaa3ef49bd88c8fc68d02ddede33;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: I4a851dd1994038b09e87fdefbfbcb96d1227f730 --- diff --git a/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/TruststoreMerger.java b/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/TruststoreMerger.java index 9bc3dd82..3cf60da1 100644 --- a/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/TruststoreMerger.java +++ b/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/merger/TruststoreMerger.java @@ -20,7 +20,6 @@ package org.onap.oom.certservice.postprocessor.merger; import java.util.List; -import org.onap.oom.certservice.postprocessor.api.ExitableException; import org.onap.oom.certservice.postprocessor.configuration.model.AppConfiguration; import org.onap.oom.certservice.postprocessor.merger.model.Truststore; import org.onap.oom.certservice.postprocessor.merger.model.certificate.CertificateWithAlias; @@ -30,7 +29,7 @@ public class TruststoreMerger { private static final int FIRST_TRUSTSTORE_INDEX = 0; private static final int SECOND_TRUSTSTORE_INDEX = 1; - public void mergeTruststores(AppConfiguration configuration) throws ExitableException { + public void mergeTruststores(AppConfiguration configuration) { List truststoreFilesList = getTruststoreFiles(configuration); Truststore baseFile = truststoreFilesList.get(FIRST_TRUSTSTORE_INDEX); @@ -45,7 +44,7 @@ public class TruststoreMerger { baseFile.saveFile(); } - private List getTruststoreFiles(AppConfiguration configuration) throws ExitableException { + private List getTruststoreFiles(AppConfiguration configuration) { return TruststoreFilesProvider .getTruststoreFiles( configuration.getTruststoreFilePaths(),