You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/05/20 18:29:10 UTC

[GitHub] [pulsar] merlimat commented on a change in pull request #10658: Force printing of system.out.printf message

merlimat commented on a change in pull request #10658:
URL: https://github.com/apache/pulsar/pull/10658#discussion_r636354304



##########
File path: site2/docs/client-libraries-java.md
##########
@@ -212,7 +212,7 @@ The following is an example.
 
 ```java
 producer.sendAsync("my-async-message".getBytes()).thenAccept(msgId -> {
-    System.out.printf("Message with ID %s successfully sent", msgId);
+    System.out.printf("Message with ID %s successfully sent%n", msgId);

Review comment:
       Good catch, maybe we could even use the more common: 
   ```suggestion
       System.out.println("Message with ID " + msgId + " successfully sent");
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org