aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceClient
diff options
context:
space:
mode:
authoredyta <edyta.krukowska@nokia.com>2020-03-31 15:32:23 +0200
committeredyta <edyta.krukowska@nokia.com>2020-03-31 15:32:23 +0200
commit7f704d9cf730d6defa7b2acef1aa79dae5152765 (patch)
treed05d81575e02eb37ab9e24bcc6c384b4c40841fe /certServiceClient
parent26d5436326c8139a5731fd913a8009ca5569be21 (diff)
Fix sonar issue AppExitHandler
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I9ed1b206dd0f8130aee11d453f1cdd6eaa534a58
Diffstat (limited to 'certServiceClient')
-rw-r--r--certServiceClient/src/main/java/org/onap/aaf/certservice/client/AppExitHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/AppExitHandler.java b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/AppExitHandler.java
index caeca37e..0bb983ed 100644
--- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/AppExitHandler.java
+++ b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/AppExitHandler.java
@@ -26,8 +26,8 @@ public class AppExitHandler {
private static final Logger LOGGER = LoggerFactory.getLogger(AppExitHandler.class);
public void exit(ExitStatus exitStatus) {
- LOGGER.info(String.format("Application exits with following exit code: %s and message: %s",
- exitStatus.getExitCodeValue(), exitStatus.getMessage()));
+ LOGGER.info("Application exits with following exit code: {} and message: {}",
+ exitStatus.getExitCodeValue(), exitStatus.getMessage());
System.exit(exitStatus.getExitCodeValue());
}
}