aboutsummaryrefslogtreecommitdiffstats
path: root/grpc/grpc-client/src/main
diff options
context:
space:
mode:
authorjitendra007 <jitendra.sharma1@huawei.com>2020-07-21 14:35:31 +0530
committerpriyanka.akhade <priyanka.akhade@huawei.com>2020-08-04 09:44:38 +0530
commit9921b1751cde31721958d004935f2b7fc5e95513 (patch)
treee41a158075ba6f95af21fc9ef25425e0dca51851 /grpc/grpc-client/src/main
parentfc9af3118881c83a0928e9a21135641808288f84 (diff)
Code improvement for pending sonar issues
Issue-ID: CLI-270 Signed-off-by: jitendra007 <jitendra.sharma1@huawei.com> Change-Id: Ie27d3ff077fa1ef4d13788849aa82d695f183eeb
Diffstat (limited to 'grpc/grpc-client/src/main')
-rw-r--r--grpc/grpc-client/src/main/java/org/open/infc/grpc/client/OpenInterfaceGrpcClient.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/grpc/grpc-client/src/main/java/org/open/infc/grpc/client/OpenInterfaceGrpcClient.java b/grpc/grpc-client/src/main/java/org/open/infc/grpc/client/OpenInterfaceGrpcClient.java
index efc941f9..fc007a01 100644
--- a/grpc/grpc-client/src/main/java/org/open/infc/grpc/client/OpenInterfaceGrpcClient.java
+++ b/grpc/grpc-client/src/main/java/org/open/infc/grpc/client/OpenInterfaceGrpcClient.java
@@ -43,8 +43,7 @@ public class OpenInterfaceGrpcClient {
public static class OpenInterfaceGrpcExecption extends Exception {
private static final long serialVersionUID = -8755636432217894246L;
- private int errorCode = -1;
-
+ private int errorCode = -1; //NOSONAR
public OpenInterfaceGrpcExecption(int errorCode, String message) {
super(message);
this.errorCode = errorCode;
@@ -52,10 +51,10 @@ public class OpenInterfaceGrpcClient {
}
public static class OpenInterfaceGrpcTimeoutExecption extends OpenInterfaceGrpcExecption {
- private static int errorCode = 1;
+ private static final int ERROR_CODE = 1;
public OpenInterfaceGrpcTimeoutExecption(String message) {
- super(errorCode, message);
+ super(ERROR_CODE, message);
}
}