changed attributes order OpenStackRequest.java 89/85589/1
authorSindhuri.A <arcot.sindhuri@huawei.com>
Wed, 17 Apr 2019 13:47:58 +0000 (19:17 +0530)
committerSindhuri.A <arcot.sindhuri@huawei.com>
Wed, 17 Apr 2019 13:47:58 +0000 (19:17 +0530)
changed attributes order for OpenStackRequest class

Issue-ID: SO-1490

Change-Id: Ic741b33b9e749fe193f2a7c8d4b02c6f67319ac3
Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackRequest.java

index 3a082a2..3374a10 100644 (file)
@@ -26,6 +26,18 @@ import java.util.Map;
 public class OpenStackRequest<R> {
     
     private OpenStackClient client;
+
+    private String endpoint;
+
+    private HttpMethod method;
+
+    private StringBuilder path = new StringBuilder();
+
+    private Map<String, List<Object>> headers = new HashMap<>();
+
+    private Entity<?> entity;
+
+    private Class<R> returnType;
     
     public OpenStackRequest() {
         
@@ -39,18 +51,7 @@ public class OpenStackRequest<R> {
         this.returnType = returnType;
         header("Accept", "application/json");
     }
-    
-    private String endpoint;
-    
-    private HttpMethod method;
-    
-    private StringBuilder path = new StringBuilder();
-    
-    private Map<String, List<Object>> headers = new HashMap<>();
-    
-    private Entity<?> entity;
-    
-    private Class<R> returnType;
+
     
     public OpenStackRequest<R> endpoint(String endpoint) {
         this.endpoint = endpoint;