From 3c03a5500236f6c80a2c7d9dce7824082cdb9900 Mon Sep 17 00:00:00 2001 From: ajay priyadarshi Date: Mon, 12 Mar 2018 12:29:11 +0530 Subject: sonar fix:Message Handling resources/MsbServiceRegister.java file name: SfcDriverUtil.java, MsbServiceRegister.java Change-Id: I5d57ff6250477c018501a47823f6b2171d88a7f6 Issue-ID: VFC-797 Signed-off-by: ajay priyadarshi --- .../src/main/java/org/onap/sfc/resources/MsbServiceRegister.java | 4 ++-- .../sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'zte/sfc-driver') diff --git a/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java b/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java index ccdf79b..aa52050 100644 --- a/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java +++ b/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java @@ -63,8 +63,8 @@ public class MsbServiceRegister implements Runnable { LOGGER.info("start sleep ...."); try { Thread.sleep(second); - } catch (InterruptedException error) { - LOGGER.error("thread sleep error.errorMsg:" + error.getMessage()); + } catch (Exception e) { + LOGGER.error("thread sleep error.errorMsg:", e); } LOGGER.info("sleep end ."); } diff --git a/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java b/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java index 30cc766..18c56a5 100644 --- a/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java +++ b/zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java @@ -32,7 +32,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class SfcDriverUtil { - public static Log log = LogFactory.getLog(SfcDriverUtil.class); + private static final Log log = LogFactory.getLog(SfcDriverUtil.class); public static String generateUuid() { return UUID.randomUUID().toString(); -- cgit 1.2.3-korg