Skip to content

Commit dc43651

Browse files
committed
fix: add private constructor to hide utility class constructor in TopologicalSort
1 parent 0620b2e commit dc43651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
public class TopologicalSort {
1414

1515
// Private constructor to prevent instantiation
16-
private TopologicalSort(){
16+
private TopologicalSort() {
1717
throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
1818
}
1919
/**

0 commit comments

Comments
 (0)