提交 63237546 编写于 作者: 斜阳

[ISSUE #2698] TopicRouteSubCommand enhancement

上级 40d4a22e
......@@ -34,7 +34,7 @@ import java.util.Map;
public class TopicRouteSubCommand implements SubCommand {
private static final String FORMAT = "%-45s %-32s %-50s %-10s %-11s %-5s\n";
private static final String FORMAT = "%-45s %-32s %-50s %-10s %-11s %-5s%n";
@Override
public String commandName() {
......@@ -80,7 +80,7 @@ public class TopicRouteSubCommand implements SubCommand {
private void printData(TopicRouteData topicRouteData, boolean useListFormat) {
if (!useListFormat) {
System.out.printf("%s\n", topicRouteData.toJson(true));
System.out.printf("%s%n", topicRouteData.toJson(true));
return;
}
......@@ -109,7 +109,7 @@ public class TopicRouteSubCommand implements SubCommand {
for (int i = 0; i < 158; i++) {
System.out.print("-");
}
System.out.print("\n");
System.out.print("%n");
System.out.printf(FORMAT, "Total:", map.keySet().size(), "", totalReadQueue, totalWriteQueue, "");
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册