summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFu Jinhua <fu.jinhua@zte.com.cn>2018-03-13 01:16:46 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-13 01:16:46 +0000
commit1c67bde87488f358f81602c12589bfe1ef580306 (patch)
tree53450b89c3e89dc4f0e832ce735d5d694b0578d3
parent78fd91171555ec729ac90d3047586afe9e68c058 (diff)
parent3c03a5500236f6c80a2c7d9dce7824082cdb9900 (diff)
Merge "sonar fix:Message Handling"
-rw-r--r--zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/resources/MsbServiceRegister.java4
-rw-r--r--zte/sfc-driver/sfc-driver/src/main/java/org/onap/sfc/utils/SfcDriverUtil.java2
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();