Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2720b9e

Browse files
refactor fomat
1 parent 2596da3 commit 2720b9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/fishercoder/common/utils/CommonUtils.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ public static ListNode reverseList(ListNode head) {
120120
if (head == null || head.next == null) {
121121
return head;
122122
}
123-
ListNode previous, current, next;
123+
ListNode previous;
124+
ListNode current;
125+
ListNode next;
124126
previous = head;
125127
current = head.next;
126128
while (current != null) {

0 commit comments

Comments
 (0)