aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket-be/vnf-sdk-marketplace/src/main
diff options
context:
space:
mode:
authorMurali <murali.p@huawei.com>2017-08-30 06:36:35 +0000
committerMurali <murali.p@huawei.com>2017-08-30 06:36:35 +0000
commit31dfadf9c4cb7ef2cc0f1af625bc9bd0097f0d94 (patch)
treea2b053649d2b2f7d58916b9d736283cafa749987 /vnfmarket-be/vnf-sdk-marketplace/src/main
parentf45e855876fb57b3cc0304495148f60500a7533c (diff)
Make the local variables final
Change-Id: I2fd44d99ba82e5259ba5d5f9f6164b0634f972cc Jira:VNFSDK-72 Signed-off-by: Murali <murali.p@huawei.com>
Diffstat (limited to 'vnfmarket-be/vnf-sdk-marketplace/src/main')
-rw-r--r--vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/openo/vnfsdk/marketplace/db/exception/ErrorCodeException.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/openo/vnfsdk/marketplace/db/exception/ErrorCodeException.java b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/openo/vnfsdk/marketplace/db/exception/ErrorCodeException.java
index 93472b05..de9f7f4e 100644
--- a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/openo/vnfsdk/marketplace/db/exception/ErrorCodeException.java
+++ b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/openo/vnfsdk/marketplace/db/exception/ErrorCodeException.java
@@ -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;
}