Make the local variables final 11/9311/1
authorMurali <murali.p@huawei.com>
Wed, 30 Aug 2017 06:36:35 +0000 (06:36 +0000)
committerMurali <murali.p@huawei.com>
Wed, 30 Aug 2017 06:36:35 +0000 (06:36 +0000)
Change-Id: I2fd44d99ba82e5259ba5d5f9f6164b0634f972cc
Jira:VNFSDK-72
Signed-off-by: Murali <murali.p@huawei.com>
vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/openo/vnfsdk/marketplace/db/exception/ErrorCodeException.java

index 93472b0..de9f7f4 100644 (file)
@@ -19,9 +19,9 @@ package org.openo.vnfsdk.marketplace.db.exception;
 public class ErrorCodeException extends Exception {
 
   private static final long serialVersionUID = 3220072444842529499L;
-  private int categoryCode = 0;
-  private int errorCode = 1;
-  private String[] arguments = null;
+  private final int categoryCode;
+  private final int errorCode;
+  private final String[] arguments;
 
   private static String defaultText = null;
 
@@ -50,6 +50,7 @@ public class ErrorCodeException extends Exception {
     super(debugMessage);
     this.errorCode = code;
     this.arguments = arguments;
+    this.categoryCode = 0;
   }
 
 
@@ -67,6 +68,7 @@ public class ErrorCodeException extends Exception {
     super(source);
     this.errorCode = code;
     this.arguments = arguments;
+    this.categoryCode = 0;
   }
 
 
@@ -85,6 +87,7 @@ public class ErrorCodeException extends Exception {
     super(debugMessage, source);
     this.errorCode = code;
     this.arguments = arguments;
+    this.categoryCode = 0;
   }