Skip to content

Commit 4747b3f

Browse files
Apply clang-format for CI compliance
1 parent 4f051e3 commit 4747b3f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/main/java/com/thealgorithms/recursion/Josephus.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
*/
1616
public final class Josephus {
1717

18+
private Josephus() {
19+
// prevent instantiation
20+
}
1821
/**
1922
* Returns the 1-based position of the survivor for given n and k.
2023
*

src/test/java/com/thealgorithms/recursion/JosephusTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package com.thealgorithms.recursion;
22

3-
import java.io.ByteArrayOutputStream;
4-
import java.io.PrintStream;
5-
63
import static org.junit.jupiter.api.Assertions.assertEquals;
74
import static org.junit.jupiter.api.Assertions.assertThrows;
85
import static org.junit.jupiter.api.Assertions.assertTrue;
6+
7+
import java.io.ByteArrayOutputStream;
8+
import java.io.PrintStream;
99
import org.junit.jupiter.api.Test;
1010

1111
/**

0 commit comments

Comments
 (0)