summaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-chef-adapter
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-12-17 23:36:08 +0530
committerTakamune Cho <takamune.cho@att.com>2018-12-18 19:21:55 +0000
commit221ec5d1fea87366306d3a7c727d84e08fe79ed8 (patch)
treef78200f8fd31404c42969a7b13ac607a446e8f8e /appc-adapters/appc-chef-adapter
parent29d81a03f4da1640146ce62c662bad77c710ca59 (diff)
Sonar Fix: ChefResponse.java
Fixed sonar issues/code-smells across this file. Issue-ID: APPC-1279 Change-Id: I50d5de26d69928037882686452aecd3deb6edbec Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'appc-adapters/appc-chef-adapter')
-rw-r--r--appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/api/ChefResponse.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/api/ChefResponse.java b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/api/ChefResponse.java
index 5f8ec1f8f..877e9b4f2 100644
--- a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/api/ChefResponse.java
+++ b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/api/ChefResponse.java
@@ -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;
}