adoroszlai commented on code in PR #10058:
URL: https://github.com/apache/ozone/pull/10058#discussion_r3056248054


##########
hadoop-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/ListInfoSubcommand.java:
##########
@@ -210,6 +235,7 @@ private void printDatanodeInfo(BasicDatanodeInfo dn) {
       }
     } else {
       pipelineListInfo.append("No pipelines in cluster.");
+      pipelineListInfo.append(System.getProperty("line.separator"));

Review Comment:
   Thanks for the info.  Then please change to:
   
   ```java
   pipelineListInfo.append("No pipelines in cluster.")
       .append(System.getProperty("line.separator"));
   ```
   
   due to recently added PMD rule (HDDS-14934).
   
   (BTW, I think using `\n` would be fine for now, it is already used in few 
places instead of `System.getProperty("line.separator")`, both in this file and 
in 122 others.)



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to