Skip to content

Commit 49fbad2

Browse files
author
albinsabu2023
committed
fix lint issues
1 parent 4373540 commit 49fbad2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/thealgorithms/datastructures/lists/CreateAndDetectLoop.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public final class CreateAndDetectLoop {
66
private CreateAndDetectLoop() {
77
throw new UnsupportedOperationException("Utility class");
88
}
9-
static final class Node {
9+
static final class Node {
1010
int data;
1111
Node next;
1212

@@ -34,8 +34,8 @@ static void createLoop(Node head, int position1, int position2) {
3434
return;
3535
}
3636

37-
Node node1 = head; // node at position1
38-
Node node2 = head; // node at position2
37+
Node node1 = head;
38+
Node node2 = head;
3939

4040
int count1 = 1;
4141
int count2 = 1;

src/test/java/com/thealgorithms/datastructures/lists/CreateAndDetectLoopTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.junit.jupiter.api.BeforeEach;
77
import org.junit.jupiter.api.Test;
88

9-
public class CreateAndDetectLoopTest {
9+
public class CreateAndDetectLoopTest {
1010

1111
private CreateAndDetectLoop.Node head;
1212

0 commit comments

Comments
 (0)