From: Arundathi Patil Date: Mon, 17 Dec 2018 18:06:08 +0000 (+0530) Subject: Sonar Fix: ChefResponse.java X-Git-Tag: 1.5.0~390 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=221ec5d1fea87366306d3a7c727d84e08fe79ed8;p=appc.git Sonar Fix: ChefResponse.java Fixed sonar issues/code-smells across this file. Issue-ID: APPC-1279 Change-Id: I50d5de26d69928037882686452aecd3deb6edbec Signed-off-by: Arundathi Patil --- 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; }