Shift constructor to comply with coding standards 57/85957/2
authorSindhuri.A <arcot.sindhuri@huawei.com>
Mon, 22 Apr 2019 09:19:42 +0000 (14:49 +0530)
committerSindhu A <arcot.sindhuri@huawei.com>
Mon, 22 Apr 2019 10:03:18 +0000 (10:03 +0000)
Shift constructor to comply with coding standards CLoudifyRequest class

Issue-ID: SO-1490

Change-Id: I63cfbf129bb4d44027cfa74a93f490e1d269ac52
Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
cloudify-client/src/main/java/org/onap/so/cloudify/base/client/CloudifyRequest.java

index 0f9ad2d..df63bd1 100644 (file)
@@ -7,9 +7,9 @@
  * 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.
@@ -31,20 +31,6 @@ public class CloudifyRequest<R> {
 
     private CloudifyClient client;
 
-    public CloudifyRequest() {
-
-    }
-
-    public CloudifyRequest(CloudifyClient client, HttpMethod method, CharSequence path, Entity<?> entity,
-            Class<R> returnType) {
-        this.client = client;
-        this.method = method;
-        this.path = new StringBuilder(path);
-        this.entity = entity;
-        this.returnType = returnType;
-        header("Accept", "application/json");
-    }
-
     private String endpoint;
 
     private HttpMethod method;
@@ -61,6 +47,20 @@ public class CloudifyRequest<R> {
     private String user = null;
     private String password = null;
 
+    public CloudifyRequest() {
+
+    }
+
+    public CloudifyRequest(CloudifyClient client, HttpMethod method, CharSequence path, Entity<?> entity,
+            Class<R> returnType) {
+        this.client = client;
+        this.method = method;
+        this.path = new StringBuilder(path);
+        this.entity = entity;
+        this.returnType = returnType;
+        header("Accept", "application/json");
+    }
+
     public CloudifyRequest<R> endpoint(String endpoint) {
         this.endpoint = endpoint;
         return this;
@@ -151,7 +151,7 @@ public class CloudifyRequest<R> {
 
     /*
      * (non-Javadoc)
-     * 
+     *
      * @see java.lang.Object#toString()
      */
     @Override