Sonar Fix: ChefResponse.java 37/74737/2
authorArundathi Patil <arundpil@in.ibm.com>
Mon, 17 Dec 2018 18:06:08 +0000 (23:36 +0530)
committerTakamune Cho <takamune.cho@att.com>
Tue, 18 Dec 2018 19:21:55 +0000 (19:21 +0000)
Fixed sonar issues/code-smells across this file.

Issue-ID: APPC-1279
Change-Id: I50d5de26d69928037882686452aecd3deb6edbec
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/api/ChefResponse.java

index 5f8ec1f..877e9b4 100644 (file)
@@ -3,6 +3,8 @@
  * ONAP : APPC
  * ================================================================================
  * Copyright (C) 2018 Nokia. All rights reserved.
+ *
+ * Modifications Copyright © 2018 IBM.
  * =============================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -24,15 +26,15 @@ public final class ChefResponse {
     private final String body;
     private final int status;
 
-    public static ChefResponse create(int status, String body) {
-        return new ChefResponse(status, body);
-    }
-
     private ChefResponse(int status, String body) {
         this.status = status;
         this.body = body;
     }
 
+    public static ChefResponse create(int status, String body) {
+        return new ChefResponse(status, body);
+    }
+
     public int getStatusCode() {
         return status;
     }