Code Enhancement (Sonar Fixes) 54/85154/1
authorIsaac Manuel Raj <isaac.manuelraj@huawei.com>
Fri, 12 Apr 2019 06:22:19 +0000 (11:52 +0530)
committerIsaac Manuel Raj <isaac.manuelraj@huawei.com>
Fri, 12 Apr 2019 06:22:19 +0000 (11:52 +0530)
Sonar Issues Fixes

Issue-ID: SO-1490

Change-Id: I5da2ebd9ad353a3c9decd6dc029fd2dbf380cc68
Signed-off-by: Isaac Manuel Raj <isaac.manuelraj@huawei.com>
openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackConnectException.java
openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackResponseException.java

index 21c58f8..0e29335 100644 (file)
  * ============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
index bbe0c6f..1fcd7a5 100644 (file)
@@ -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