summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-07-19 14:48:22 +0530
committerArundathi Patil <arundpil@in.ibm.com>2019-07-19 14:48:29 +0530
commitd15e7efebc134df5f18151dfd53fbe3209f5b905 (patch)
tree366ccaa34cc167c07f894aa1357398198fbe1304 /src
parentb360bab7259e7bdba6b1169b56243bda1127bbf0 (diff)
Sonar Fix: JsonResponse.java
Fixed sonar issues across this file Issue-ID: MUSIC-459 Change-Id: I3249ca2644171bb5c65313b9b4198ddb039a0c61 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/music/response/jsonobjects/JsonResponse.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/main/java/org/onap/music/response/jsonobjects/JsonResponse.java b/src/main/java/org/onap/music/response/jsonobjects/JsonResponse.java
index f0793dc2..5ae49f5d 100644
--- a/src/main/java/org/onap/music/response/jsonobjects/JsonResponse.java
+++ b/src/main/java/org/onap/music/response/jsonobjects/JsonResponse.java
@@ -3,6 +3,8 @@
* org.onap.music
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
+ *
+ * Modifications Copyright (C) 2019 IBM.
* ===================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -58,6 +60,15 @@ public class JsonResponse {
private String lockLease;
private boolean isLockHolders=false;
+ /**
+ * Create a JSONLock Response
+ * Use setters to provide more information as in
+ * JsonLockResponse(ResultType.SUCCESS).setMessage("We did it").setLock(mylockname)
+ * @param status
+ */
+ public JsonResponse(ResultType status) {
+ this.status = status;
+ }
public boolean isLockHolders() {
return isLockHolders;
@@ -68,16 +79,6 @@ public class JsonResponse {
return this;
}
- /**
- * Create a JSONLock Response
- * Use setters to provide more information as in
- * JsonLockResponse(ResultType.SUCCESS).setMessage("We did it").setLock(mylockname)
- * @param status
- */
- public JsonResponse(ResultType status) {
- this.status = status;
- }
-
/**
*
* @return