Fixed sonar issues/code-smells across this file.
Issue-ID: APPC-1279
Change-Id: I50d5de26d69928037882686452aecd3deb6edbec
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
* ONAP : APPC
* ================================================================================
* Copyright (C) 2018 Nokia. All rights reserved.
* 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.
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
private final String body;
private final int status;
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;
}
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;
}
public int getStatusCode() {
return status;
}