diff options
author | waynedunican <wayne.dunican@est.tech> | 2024-08-12 21:18:12 +0100 |
---|---|---|
committer | waynedunican <wayne.dunican@est.tech> | 2024-08-13 09:21:16 +0100 |
commit | 63d23a4aa0f3aeae9d6470b95dfa8f87b2d85aa8 (patch) | |
tree | 74aa5c14f66dc5760eb00ea8f18c278174cbc56e /utils-test/src/main/java/org/onap | |
parent | 34cad0af615db1ed4b85b8e4e1b77d0948289eed (diff) |
Fix sonar issues in common
- SONAR Fix instanceOf issues
- SONAR Remove public modifiers
- SONAR Remove unused imports
- SONAR Remove exceptions that can't be thrown from method body
Issue-ID: POLICY-5106
Change-Id: I745d0101036d3421f02db22481514be0b79f5103
Signed-off-by: waynedunican <wayne.dunican@est.tech>
Diffstat (limited to 'utils-test/src/main/java/org/onap')
-rw-r--r-- | utils-test/src/main/java/org/onap/policy/common/utils/security/SelfSignedKeyStore.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils-test/src/main/java/org/onap/policy/common/utils/security/SelfSignedKeyStore.java b/utils-test/src/main/java/org/onap/policy/common/utils/security/SelfSignedKeyStore.java index 0787872c..1cc16263 100644 --- a/utils-test/src/main/java/org/onap/policy/common/utils/security/SelfSignedKeyStore.java +++ b/utils-test/src/main/java/org/onap/policy/common/utils/security/SelfSignedKeyStore.java @@ -3,6 +3,7 @@ * ONAP * ================================================================================ * Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2024 Nordix Foundation * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,7 +37,6 @@ import java.security.cert.CertificateException; import java.util.Arrays; import java.util.Date; import java.util.concurrent.TimeUnit; -import java.util.stream.Collectors; import lombok.Getter; import org.bouncycastle.asn1.x500.X500Name; import org.bouncycastle.asn1.x509.Extension; @@ -77,7 +77,7 @@ public class SelfSignedKeyStore { * @throws IOException if an I/O error occurs * @throws InterruptedException if an interrupt occurs */ - public SelfSignedKeyStore() throws IOException, InterruptedException { + public SelfSignedKeyStore() throws IOException { this(RELATIVE_PATH); } @@ -89,7 +89,7 @@ public class SelfSignedKeyStore { * @throws IOException if an I/O error occurs * @throws InterruptedException if an interrupt occurs */ - public SelfSignedKeyStore(String relativePath) throws IOException, InterruptedException { + public SelfSignedKeyStore(String relativePath) throws IOException { keystoreName = System.getProperty("user.dir") + "/" + relativePath; // use existing file if it isn't too old |