diff options
author | Fu Jinhua <fu.jinhua@zte.com.cn> | 2018-03-13 01:16:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-13 01:16:46 +0000 |
commit | 1c67bde87488f358f81602c12589bfe1ef580306 (patch) | |
tree | 53450b89c3e89dc4f0e832ce735d5d694b0578d3 /zte/sfc-driver | |
parent | 78fd91171555ec729ac90d3047586afe9e68c058 (diff) | |
parent | 3c03a5500236f6c80a2c7d9dce7824082cdb9900 (diff) |
Merge "sonar fix:Message Handling"
Diffstat (limited to 'zte/sfc-driver')
-rw-r--r-- | zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java | 4 | ||||
-rw-r--r-- | zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java | 2 |
2 files changed, 3 insertions, 3 deletions
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(); |