Skip to content

Commit

Permalink
改用print alibaba#4507
Browse files Browse the repository at this point in the history
idea 提示为: %n should be used in place of \n to produce the platform-specific line separator. String contains no format specifiers. 冗余调用 'printf()'.
  • Loading branch information
lizongbo committed Dec 20, 2023
1 parent 8438c1a commit 6d948c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/com/alibaba/druid/util/ListDG.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public void BFS() {
* 打印矩阵队列图
*/
public void print() {
System.out.printf("== List Graph:\n");
System.out.print("== List Graph:\n");
for (int i = 0; i < mVexs.size(); i++) {
System.out.printf("%d(%c): ", i, mVexs.get(i).data);
ENode node = mVexs.get(i).firstEdge;
Expand Down

0 comments on commit 6d948c6

Please sign in to comment.