mirror of
https://bitbucket.org/Mattrixwv/matrix.git
synced 2025-12-06 23:13:57 -05:00
Updated for SonarQube findings
This commit is contained in:
@@ -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)){
|
||||
|
||||
Reference in New Issue
Block a user