Following java coding for instance var 01/44601/1
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Wed, 25 Apr 2018 06:55:53 +0000 (12:25 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Wed, 25 Apr 2018 06:55:53 +0000 (12:25 +0530)
Issue-ID: CLI-100

Change-Id: I3beffd15835e7cac7a4aa0a36288cae963e366d2
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
framework/src/main/java/org/onap/cli/fw/error/OnapCommandException.java

index 5dffde5..e83f857 100644 (file)
@@ -42,7 +42,7 @@ public class OnapCommandException extends Exception {
 
     private static final long serialVersionUID = 2833124031431731711L;
 
-    private static Logger LOG = LoggerFactory.getLogger(OnapCommandException.class);
+    private static final Logger log = LoggerFactory.getLogger(OnapCommandException.class);
 
     /*
      * Command Error Code
@@ -98,22 +98,22 @@ public class OnapCommandException extends Exception {
 
     public OnapCommandException(String errorCode, String errorMessage, Throwable e) {
         this(errorCode, errorMessage + ", " + e.getMessage());
-        LOG.error(this.getMessage(), e);
+        log.error(this.getMessage(), e);
     }
 
     public OnapCommandException(String errorCode, String errorMessage, Throwable e, long httpStatusCode) {
         this(errorCode, errorMessage + ", " + e.getMessage(), httpStatusCode);
-        LOG.error(this.getMessage(), e);
+        log.error(this.getMessage(), e);
     }
 
     public OnapCommandException(String errorCode, Throwable e, long httpStatusCode) {
         this(errorCode, e.getMessage(), httpStatusCode);
-        LOG.error(this.getMessage(), e);
+        log.error(this.getMessage(), e);
     }
 
     public OnapCommandException(String errorCode, Throwable e) {
         this(errorCode, e.getMessage(), -1);
-        LOG.error(this.getMessage(), e);
+        log.error(this.getMessage(), e);
     }
 
     public String getErrorCode() {