summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-07-30 12:35:02 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-30 12:35:02 +0000
commit877157e55de7ac18fdc9f63e1aafa757f51c030b (patch)
treee0d04b3719ec80ad5a19db79ef941aca8b2d92ae
parentcae09e0f21ddccc61fb8a8fb6d51b404f7832b13 (diff)
parent41c81f1a6c41d4e480749b71777a934fc70b0c62 (diff)
Merge "Directly append the argument of String.valueOf()"
-rwxr-xr-xmessage-router/publisher/sample.client/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/publisher/client/impl/ClientImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/message-router/publisher/sample.client/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/publisher/client/impl/ClientImpl.java b/message-router/publisher/sample.client/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/publisher/client/impl/ClientImpl.java
index 8ce06695..d1610305 100755
--- a/message-router/publisher/sample.client/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/publisher/client/impl/ClientImpl.java
+++ b/message-router/publisher/sample.client/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/publisher/client/impl/ClientImpl.java
@@ -48,7 +48,7 @@ public class ClientImpl {
public void init() {
for (int i = 0; i < 5; i++) {
- String body = "{\"hello\":\"world " + String.valueOf(Math.random()) + "\"}";
+ String body = "{\"hello\":\"world " + Math.random() + "\"}";
logger.error("Loop iteration " + i + " sending body " + body + " to the topic " + topic);
Boolean result = publisher.publish(topic, body);
logger.error("Loop iteration " + i + " returned the boolean value " + result);