Skip to content

Commit 4c54898

Browse files
committed
build fix for PMD
1 parent 970a32a commit 4c54898

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/thealgorithms/matrix/matrixexponentiation

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ private static int[][] matrixMultiplication(int[][] matrix1, int[][] matrix2) {
5555
*/
5656
public static int[][] fib(int n) {
5757
if (n == 0) {
58-
return Fibonacci.IDENTITY_MATRIX;
58+
return IDENTITY_MATRIX;
5959
} else {
6060
int[][] cachedResult = fib(n / 2);
6161
int[][] matrixExpResult = matrixMultiplication(cachedResult, cachedResult);
6262
if (n % 2 == 0) {
6363
return matrixExpResult;
6464
} else {
65-
return matrixMultiplication(Fibonacci.FIB_MATRIX, matrixExpResult);
65+
return matrixMultiplication(FIB_MATRIX, matrixExpResult);
6666
}
6767
}
6868
}

0 commit comments

Comments
 (0)