Skip to content

Commit 4c6d209

Browse files
committed
fix linter issues
1 parent 2e50255 commit 4c6d209

File tree

13 files changed

+20
-33
lines changed

13 files changed

+20
-33
lines changed

src/main/java/com/thealgorithms/matrix/matrixexponentiation/Fibonacci.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package com.thealgorithms.matrix.matrixexponentiation;
22

3+
import com.thealgorithms.matrix.utils.MatrixUtil;
34
import java.math.BigDecimal;
45
import java.util.Scanner;
56

6-
import com.thealgorithms.matrix.utils.MatrixUtil;
7-
87
/**
98
* @author Anirudh Buvanesh (https://github.com/anirudhb11) For more information
109
* see https://www.geeksforgeeks.org/matrix-exponentiation/

src/main/java/com/thealgorithms/puzzlesandgames/Sudoku.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
*/
1010
final class Sudoku {
1111

12-
private Sudoku() {
13-
}
14-
1512
/**
1613
* Checks if placing a number in a specific position on the Sudoku board is safe.
1714
* The number is considered safe if it does not violate any of the Sudoku rules:

src/test/java/com/thealgorithms/maths/SquareFreeIntegerTest.java

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

3+
import java.util.List;
4+
35
import static org.junit.jupiter.api.Assertions.assertEquals;
46
import static org.junit.jupiter.api.Assertions.assertThrows;
5-
6-
import java.util.List;
77
import org.junit.jupiter.api.Test;
88

99
import com.thealgorithms.maths.Prime.SquareFreeInteger;

src/test/java/com/thealgorithms/maths/prime/LiouvilleLambdaFunctionTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
44
import static org.junit.jupiter.api.Assertions.assertThrows;
5-
6-
import org.junit.jupiter.api.Test;
7-
85
import com.thealgorithms.maths.Prime.LiouvilleLambdaFunction;
6+
import org.junit.jupiter.api.Test;
97

108
class LiouvilleLambdaFunctionTest {
119

src/test/java/com/thealgorithms/maths/prime/MillerRabinPrimalityCheckTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import static org.junit.jupiter.api.Assertions.assertFalse;
44
import static org.junit.jupiter.api.Assertions.assertTrue;
5-
import org.junit.jupiter.api.Test;
65

76
import com.thealgorithms.maths.Prime.MillerRabinPrimalityCheck;
7+
import org.junit.jupiter.api.Test;
88

99
class MillerRabinPrimalityCheckTest {
1010
@Test

src/test/java/com/thealgorithms/maths/MobiusFunctionTest.java renamed to src/test/java/com/thealgorithms/maths/prime/MobiusFunctionTest.java

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

33
import static org.junit.jupiter.api.Assertions.assertEquals;
44
import static org.junit.jupiter.api.Assertions.assertThrows;
5-
6-
import org.junit.jupiter.api.Test;
7-
85
import com.thealgorithms.maths.Prime.MobiusFunction;
6+
import org.junit.jupiter.api.Test;
97

108
class MobiusFunctionTest {
119

src/test/java/com/thealgorithms/maths/prime/PrimeCheckTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package com.thealgorithms.maths.prime;
22

3+
import com.thealgorithms.maths.Prime.PrimeCheck;
34
import org.junit.jupiter.api.Assertions;
45
import org.junit.jupiter.api.Test;
56

6-
import com.thealgorithms.maths.Prime.PrimeCheck;
7-
87
public class PrimeCheckTest {
98

109
@Test

src/test/java/com/thealgorithms/maths/prime/PrimeFactorizationTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
import java.util.stream.Stream;
55

66
import static org.junit.jupiter.api.Assertions.assertEquals;
7+
import com.thealgorithms.maths.Prime.PrimeFactorization;
78
import org.junit.jupiter.params.ParameterizedTest;
89
import org.junit.jupiter.params.provider.Arguments;
910
import org.junit.jupiter.params.provider.MethodSource;
1011

11-
import com.thealgorithms.maths.Prime.PrimeFactorization;
12-
1312
class PrimeFactorizationTest {
1413

1514
@ParameterizedTest

src/test/java/com/thealgorithms/matrix/MatrixRankTest.java

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

3-
import java.util.Arrays;
4-
import java.util.stream.Stream;
5-
63
import static org.junit.jupiter.api.Assertions.assertEquals;
74
import static org.junit.jupiter.api.Assertions.assertThrows;
5+
6+
import java.util.Arrays;
7+
import java.util.stream.Stream;
88
import org.junit.jupiter.params.ParameterizedTest;
99
import org.junit.jupiter.params.provider.Arguments;
1010
import org.junit.jupiter.params.provider.MethodSource;

src/test/java/com/thealgorithms/matrix/MatrixUtilTest.java

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

3+
import static org.junit.jupiter.api.Assertions.assertTrue;
4+
5+
import com.thealgorithms.matrix.utils.MatrixUtil;
36
import java.math.BigDecimal;
47
import java.util.Objects;
58

6-
import static org.junit.jupiter.api.Assertions.assertTrue;
79
import org.junit.jupiter.api.Test;
810

9-
import com.thealgorithms.matrix.utils.MatrixUtil;
10-
1111
class MatrixUtilTest {
1212

1313
@Test

0 commit comments

Comments
 (0)