summaryrefslogtreecommitdiffstats
path: root/feature-server-pool/src/main
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2020-06-23 20:30:57 +0000
committerGerrit Code Review <gerrit@onap.org>2020-06-23 20:30:57 +0000
commit6e4a58e5796c77fb571e8e60e3b6715a022439da (patch)
tree66ea9c5c3b48a8f9650f0dfc977d298e6bae717f /feature-server-pool/src/main
parentbdff552e3bf0db1d157641b939363ddadda0636e (diff)
parent57a0ddae233fba3dadd689fd7f48734c3c6c04a6 (diff)
Merge "fix sonar - feature-server"
Diffstat (limited to 'feature-server-pool/src/main')
-rw-r--r--feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java b/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java
index 5044b3e9..87229fb8 100644
--- a/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java
+++ b/feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java
@@ -596,7 +596,7 @@ public class Bucket {
* selected bucket has no server assigned -- this should only be a
* transient situation, until 'rebalance' is run.
*/
- out.format("Bucket is %d, which has no owner\n", bucketNumber);
+ out.format("Bucket is %d, which has no owner%n", bucketNumber);
} else if (server == Server.getThisServer()) {
/*
* the selected bucket is associated with this particular server --
@@ -609,9 +609,9 @@ public class Bucket {
* the selected bucket is assigned to a different server -- forward
* the message.
*/
- out.format("Bucket is %d: sending from\n"
- + " %s to\n"
- + " %s\n",
+ out.format("Bucket is %d: sending from%n"
+ + " %s to%n"
+ + " %s%n",
bucketNumber, Server.getThisServer().getUuid(), server.getUuid());
// do a POST call of /bucket/bucketResponse to the remoote server
@@ -656,7 +656,7 @@ public class Bucket {
if (response == null) {
out.println("Timed out waiting for a response");
} else {
- out.format("Received response code %s\nEntity = %s\n",
+ out.format("Received response code %s\nEntity = %s%n",
response.getStatus(), response.readEntity(String.class));
}
} catch (InterruptedException e) {