Directly append the argument of String.valueOf() 57/92257/3
authorThugutla Sailakshmi <tsaila10@in.ibm.com>
Tue, 30 Jul 2019 09:29:22 +0000 (14:59 +0530)
committerThugutla Sai Lakshmi <tsaila10@in.ibm.com>
Tue, 30 Jul 2019 09:55:04 +0000 (09:55 +0000)
Directly append the argument of String.valueOf()

Issue-ID: CCSDK-914
Change-Id: I4ba07651a94bb7da9b47d10c5e9582022bde66a5
Signed-off-by: Thugutla Sailakshmi <tsaila10@in.ibm.com>
message-router/publisher/sample.client/src/main/java/org/onap/ccsdk/sli/adaptors/messagerouter/publisher/client/impl/ClientImpl.java

index 25fc87e..d626480 100755 (executable)
@@ -1,3 +1,26 @@
+/**\r
+ * ============LICENSE_START====================================================\r
+ * org.onap.aaf\r
+ * ===========================================================================\r
+ * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.\r
+ *\r
+ * Modifications Copyright (C) 2019 IBM.\r
+ * ===========================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ *      http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END====================================================\r
+ *\r
+ */\r
+\r
 package org.onap.ccsdk.sli.adaptors.messagerouter.publisher.client.impl;\r
 \r
 import org.onap.ccsdk.sli.adaptors.messagerouter.publisher.api.PublisherApi;\r
@@ -23,7 +46,7 @@ public class ClientImpl {
 \r
        public void init() {\r
                for (int i = 0; i < 5; i++) {\r
-                       String body = "{\"hello\":\"world " + String.valueOf(Math.random()) + "\"}";\r
+                       String body = "{\"hello\":\"world " + Math.random() + "\"}";\r
                        logger.error("Loop iteration " + i + " sending body " + body + " to the topic " + topic);\r
                        Boolean result = publisher.publish(topic, body);\r
                        logger.error("Loop iteration " + i + " returned the boolean value " + result);\r