diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2020-09-18 06:06:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-18 06:06:49 +0000 |
commit | 129b0e7eb72976a576bb1528a3a6c3bf0a239eb8 (patch) | |
tree | 01b52df0a39ddf9816515baaa2bf206f81a48a0d | |
parent | bdbbfb6ad5f724b920e7e0bb587e4cc0cdbb5b5d (diff) | |
parent | 9cf59f7e1a3c55ca1232ce65ee2e9d1481472e33 (diff) |
Merge "[OOM-CPMv2] Fix sonar issue"
-rw-r--r-- | trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/configuration/AppConfigurationProvider.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/configuration/AppConfigurationProvider.java b/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/configuration/AppConfigurationProvider.java index 79e223c5..1e9ef8a9 100644 --- a/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/configuration/AppConfigurationProvider.java +++ b/trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/configuration/AppConfigurationProvider.java @@ -29,7 +29,6 @@ import java.util.Collections; import java.util.List; import java.util.Optional; import org.onap.oom.certservice.postprocessor.configuration.path.env.EnvReader; -import org.onap.oom.certservice.postprocessor.configuration.exception.CertificatesPathsValidationException; import org.onap.oom.certservice.postprocessor.configuration.exception.ConfigurationException; import org.onap.oom.certservice.postprocessor.configuration.model.AppConfiguration; import org.onap.oom.certservice.postprocessor.configuration.model.EnvVariable; @@ -45,9 +44,7 @@ public class AppConfigurationProvider { this.pathsSplitter = pathsSplitter; } - public AppConfiguration createConfiguration() - throws ConfigurationException, CertificatesPathsValidationException { - + public AppConfiguration createConfiguration() { List<String> truststoresPaths = getPaths(TRUSTSTORES_PATHS); List<String> truststoresPasswordsPaths = getPaths(TRUSTSTORES_PASSWORDS_PATHS); List<String> sourceKeystorePaths = getPaths(KEYSTORE_SOURCE_PATHS); @@ -62,7 +59,7 @@ public class AppConfigurationProvider { destinationKeystorePaths); } - private List<String> getPaths(EnvVariable envVariable) throws ConfigurationException { + private List<String> getPaths(EnvVariable envVariable) { Optional<String> envValue = envReader.getEnv(envVariable.name()); isMandatoryEnvPresent(envVariable, envValue); return envValue.isPresent() ? pathsSplitter.getValidatedPaths(envVariable, envValue) : Collections.emptyList(); @@ -75,7 +72,7 @@ public class AppConfigurationProvider { } private void ensureSameSize(List<String> firstList, List<String> secondList, String firstListEnvName, - String secondListEnvName) throws ConfigurationException { + String secondListEnvName) { if (firstList.size() != secondList.size()) { throw new ConfigurationException( "Size of " + firstListEnvName |