From: edyta Date: Tue, 31 Mar 2020 10:45:33 +0000 (+0200) Subject: Fix sonar issue KeyPairFactory X-Git-Tag: 1.0.0~18 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=26d5436326c8139a5731fd913a8009ca5569be21;p=oom%2Fplatform%2Fcert-service.git Fix sonar issue KeyPairFactory Issue-ID: AAF-1118 Signed-off-by: edyta Change-Id: Ie9512a772c64a4217539eb80c3b31f90054fab33 --- diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/KeyPairFactory.java b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/KeyPairFactory.java index 988d37d8..5bf103ba 100644 --- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/KeyPairFactory.java +++ b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/certification/KeyPairFactory.java @@ -28,7 +28,7 @@ import java.security.NoSuchAlgorithmException; public class KeyPairFactory { - private final Logger LOGGER = LoggerFactory.getLogger(KeyPairFactory.class); + private final static Logger LOGGER = LoggerFactory.getLogger(KeyPairFactory.class); private final String encryptionAlgorithm; private final int keySize; @@ -42,7 +42,7 @@ public class KeyPairFactory { LOGGER.info("KeyPair generation started with algorithm: {} and key size: {}", encryptionAlgorithm, keySize); return createKeyPairGenerator().generateKeyPair(); } catch (NoSuchAlgorithmException e) { - LOGGER.error("Generation of KeyPair failed, exception message: {}" , e.getMessage()); + LOGGER.error("Generation of KeyPair failed, exception message: {}", e.getMessage()); throw new KeyPairGenerationException(e); } }