summaryrefslogtreecommitdiffstats
path: root/openstack-client/src/main
diff options
context:
space:
mode:
authorIsaac Manuel Raj <isaac.manuelraj@huawei.com>2019-04-12 11:52:19 +0530
committerIsaac Manuel Raj <isaac.manuelraj@huawei.com>2019-04-12 11:52:19 +0530
commit2b49876216feb9f61f112d7e81e0754e3a894953 (patch)
tree907b7f86bd37642b8f06e3af378dcf97e97d0d49 /openstack-client/src/main
parent861218e890065dc99d97be01903dcb3d302e77f4 (diff)
Code Enhancement (Sonar Fixes)
Sonar Issues Fixes Issue-ID: SO-1490 Change-Id: I5da2ebd9ad353a3c9decd6dc029fd2dbf380cc68 Signed-off-by: Isaac Manuel Raj <isaac.manuelraj@huawei.com>
Diffstat (limited to 'openstack-client/src/main')
-rw-r--r--openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackConnectException.java24
-rw-r--r--openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java10
2 files changed, 6 insertions, 28 deletions
diff --git a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackConnectException.java b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackConnectException.java
index 21c58f8..0e29335 100644
--- a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackConnectException.java
+++ b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackConnectException.java
@@ -14,28 +14,6 @@
* ============LICENSE_END=========================================================
*/
-/*
- * ============LICENSE_START==========================================
- * ===================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ===================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END============================================
- *
- * ECOMP and OpenECOMP are trademarks
- * and service marks of AT&T Intellectual Property.
- *
- */
package com.woorea.openstack.base.client;
@@ -55,4 +33,4 @@ public class OpenStackConnectException extends OpenStackBaseException {
public OpenStackConnectException(String message, Throwable cause) {
super(message, cause);
}
-}
+} \ No newline at end of file
diff --git a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java
index bbe0c6f..1fcd7a5 100644
--- a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java
+++ b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java
@@ -24,12 +24,12 @@ public class OpenStackResponseException extends OpenStackBaseException {
private static final long serialVersionUID = 7294957362769575271L;
- protected String message;
+ protected final String message;
+
+ protected final int status;
- protected int status;
-
// Make the response available for exception handling (includes body)
- protected OpenStackResponse response;
+ protected final OpenStackResponse response;
public OpenStackResponseException(String message, int status) {
this.message = message;
@@ -56,4 +56,4 @@ public class OpenStackResponseException extends OpenStackBaseException {
return response;
}
-}
+} \ No newline at end of file