diff options
author | Taka Cho <takamune.cho@att.com> | 2020-06-23 10:15:00 -0400 |
---|---|---|
committer | Taka Cho <takamune.cho@att.com> | 2020-06-23 10:15:52 -0400 |
commit | 57a0ddae233fba3dadd689fd7f48734c3c6c04a6 (patch) | |
tree | e41d4f9cb8a53f50376855be59cc794190fd2a1f | |
parent | c951a18cd53cbd1d2c26a78b29b941c64150839f (diff) |
fix sonar - feature-server
%n is portable across platforms \n is not.
Issue-ID: POLICY-2616
Change-Id: I6daa827b93384c8b25dcb58b87fff116d09a2176
Signed-off-by: Taka Cho <takamune.cho@att.com>
-rw-r--r-- | feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/Bucket.java | 10 |
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) { |