Updated for SonarQube findings

This commit is contained in:
2022-07-03 17:45:08 -04:00
parent a7333c5f3e
commit 4b738d2817
11 changed files with 3896 additions and 962 deletions

View File

@@ -1,7 +1,7 @@
//Matrix/src/main/java/com/mattrixwv/matrix/ModMatrix.java
//Mattrixwv
// Created: 02-09-22
//Modified: 06-29-22
//Modified: 07-01-22
package com.mattrixwv.matrix;
@@ -32,6 +32,10 @@ public class ModMatrix extends IntegerMatrix{
return newValue;
}
protected int[] modValues(int[] values){
if(values == null){
throw new InvalidGeometryException("Array cannot be null");
}
int[] newValues = new int[values.length];
for(int cnt = 0;cnt < values.length;++cnt){
@@ -319,7 +323,7 @@ public class ModMatrix extends IntegerMatrix{
if(rightSide == null){
return false;
}
if(rightSide.getClass().equals(this.getClass())){
else if(rightSide.getClass().equals(this.getClass())){
return equals((ModMatrix)rightSide);
}
else if(rightSide.getClass().equals(int[][].class)){