Skip to content

Commit 045c7fc

Browse files
Format Java files with clang-format
1 parent 2fe708f commit 045c7fc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
*/
1717
public class TopologicalSort {
1818

19+
// Prevent instantiation
20+
private TopologicalSort() {
21+
throw new AssertionError("Cannot instantiate utility class");
22+
}
23+
1924
/**
2025
* Class that represents a directed graph and provides methods for
2126
* manipulating the graph

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
package com.thealgorithms.graph;
22

3-
import static org.junit.jupiter.api.Assertions.*;
4-
53
import java.util.Arrays;
64
import java.util.List;
75
import org.junit.jupiter.api.DisplayName;
86
import org.junit.jupiter.api.Test;
97

8+
import static org.junit.jupiter.api.Assertions.assertEquals;
9+
import static org.junit.jupiter.api.Assertions.assertThrows;
10+
import static org.junit.jupiter.api.Assertions.assertTrue;
11+
1012
/**
1113
* Test class for TopologicalSort
1214
* Achieves 100% code coverage

0 commit comments

Comments
 (0)