This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new 18e2a26 [ISSUE #3164]Fix the checkstyle error
new bb9a70c Merge pull request #3165 from
zhangjidi2016/fix_checkstyle_error
18e2a26 is described below
commit 18e2a26b99bf45da61e68b9eb1ac1ea8a5eb48e6
Author: zhangjidi2016 <[email protected]>
AuthorDate: Mon Jul 19 09:21:48 2021 +0800
[ISSUE #3164]Fix the checkstyle error
---
.../src/main/java/org/apache/rocketmq/example/quickstart/Producer.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/example/src/main/java/org/apache/rocketmq/example/quickstart/Producer.java
b/example/src/main/java/org/apache/rocketmq/example/quickstart/Producer.java
index 0da6177..771eea1 100644
--- a/example/src/main/java/org/apache/rocketmq/example/quickstart/Producer.java
+++ b/example/src/main/java/org/apache/rocketmq/example/quickstart/Producer.java
@@ -18,7 +18,6 @@ package org.apache.rocketmq.example.quickstart;
import org.apache.rocketmq.client.exception.MQClientException;
import org.apache.rocketmq.client.producer.DefaultMQProducer;
-import org.apache.rocketmq.client.producer.SendCallback;
import org.apache.rocketmq.client.producer.SendResult;
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.remoting.common.RemotingHelper;
@@ -77,7 +76,7 @@ public class Producer {
* if you want to get the send result in a synchronize way,
you can use this send method
* {@code
* SendResult sendResult = producer.send(msg);
- * System.out.println(sendResult.toString());
+ * System.out.printf("%s%n", sendResult);
* }
*/