Skip to content

Commit 6010566

Browse files
committed
style: Apply Java code style guidelines
1 parent f6c204d commit 6010566

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

src/main/java/com/thealgorithms/graph/DisjointSet.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.thealgorithms.graph;
22

3-
import java.util.*;
3+
import java.util.ArrayList;
4+
import java.util.List;
45

56
/**
67
* Implementation of the Disjoint Set (Union-Find) data structure with path

src/main/java/com/thealgorithms/graph/TopologicalSort.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package com.thealgorithms.graph;
22

3-
import java.util.*;
3+
import java.util.ArrayList;
4+
import java.util.Arrays;
5+
import java.util.LinkedList;
6+
import java.util.List;
7+
import java.util.Queue;
48

59
/**
610
* Implementation of Kahn's algorithm for topological sorting of a directed

src/test/java/com/thealgorithms/graph/DisjointSetTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package com.thealgorithms.graph;
22

3-
import static org.junit.jupiter.api.Assertions.*;
3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
import static org.junit.jupiter.api.Assertions.assertFalse;
5+
import static org.junit.jupiter.api.Assertions.assertThrows;
6+
import static org.junit.jupiter.api.Assertions.assertTrue;
47

58
import java.util.List;
69
import org.junit.jupiter.api.DisplayName;

src/test/java/com/thealgorithms/graph/TopologicalSortTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package com.thealgorithms.graph;
22

3-
import static org.junit.jupiter.api.Assertions.*;
3+
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
4+
import static org.junit.jupiter.api.Assertions.assertEquals;
5+
import static org.junit.jupiter.api.Assertions.assertNull;
6+
import static org.junit.jupiter.api.Assertions.assertThrows;
7+
import static org.junit.jupiter.api.Assertions.assertTrue;
48

59
import java.util.Arrays;
610
import java.util.List;

0 commit comments

Comments
 (0)