summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorajay priyadarshi <ajay.priyadarshi@ril.com>2018-03-12 12:29:11 +0530
committerajay priyadarshi <ajay.priyadarshi@ril.com>2018-03-12 12:40:36 +0530
commit3c03a5500236f6c80a2c7d9dce7824082cdb9900 (patch)
tree4be2ea2ec0cd5b7fc66ee46077728548fb173df3
parentd70c6ad9da81011b3c8fdc4a177f0094ff5967f8 (diff)
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 <ajay.priyadarshi@ril.com>
-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();