From 57a0ddae233fba3dadd689fd7f48734c3c6c04a6 Mon Sep 17 00:00:00 2001 From: Taka Cho Date: Tue, 23 Jun 2020 10:15:00 -0400 Subject: fix sonar - feature-server %n is portable across platforms \n is not. Issue-ID: POLICY-2616 Change-Id: I6daa827b93384c8b25dcb58b87fff116d09a2176 Signed-off-by: Taka Cho --- .../main/java/org/onap/policy/drools/serverpool/Bucket.java | 10 +++++----- 1 file 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) { -- cgit 1.2.3-korg