linlinnn commented on a change in pull request #10548:
URL: https://github.com/apache/pulsar/pull/10548#discussion_r630805230



##########
File path: 
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java
##########
@@ -341,8 +341,8 @@ public void recycle() {
     @Override
     public String toString() {
         return "OpAddEntry{" +
-                "mlName" + ml.getName() +
-                "ledgerId=" + ledger.getId() +
+                "mlName=" + ml != null ? ml.getName() : "null" +
+                "ledgerId=" + ledger != null ? String.valueOf(ledger.getId()) 
: "null" +

Review comment:
       It's better to add a comma
   ```suggestion
                   ", ledgerId=" + ledger != null ? 
String.valueOf(ledger.getId()) : "null" +
   ```




-- 
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:
[email protected]


Reply via email to