Skip to content

Commit 7aedeab

Browse files
committed
trailing spaces and regex issues
1 parent 0b2c39e commit 7aedeab

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.thealgorithms.matrix.utils.MatrixUtil;
44
import java.math.BigDecimal;
5-
import java.util.Scanner;
65

76
/**
87
* @author Anirudh Buvanesh (https://github.com/anirudhb11) For more information

src/main/java/com/thealgorithms/matrix/utils/MatrixUtil.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @author: caos321
1010
* @date: 31 October 2021 (Sunday)
1111
*/
12-
public class MatrixUtil {
12+
public final class MatrixUtil {
1313

1414
private MatrixUtil() {
1515
}
@@ -40,7 +40,7 @@ public static void validateInputMatrix(double[][] matrix) {
4040
throw new IllegalArgumentException("The input matrix cannot be jagged");
4141
}
4242
}
43-
43+
4444
private static boolean hasValidRows(double[][] matrix) {
4545
for (double[] row : matrix) {
4646
if (row == null || row.length == 0) {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import java.util.Set;
99

1010
public final class WordBoggle {
11-
11+
1212
private WordBoggle() {
1313
}
1414
/**

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void testMirrorMatrixMultipleRowsOneColumnMatrix() {
4242
void testMirrorMatrixNullInput() {
4343
double[][] originalMatrix = null;
4444
Exception e = assertThrows(IllegalArgumentException.class, () -> MirrorOfMatrix.mirrorMatrix(originalMatrix));
45-
assertEquals("The input matrix cannot be null", e.getMessage());
45+
assertEquals("The input matrix cannot be null", e.getMessage());
4646
}
4747

4848
@Test

0 commit comments

Comments
 (0)