style: include DLS_DEAD_LOCAL_STORE
(#5276)
This commit is contained in:
parent
26b4b82949
commit
96e59e063a
@ -65,9 +65,6 @@
|
|||||||
<Match>
|
<Match>
|
||||||
<Bug pattern="UWF_UNWRITTEN_FIELD" />
|
<Bug pattern="UWF_UNWRITTEN_FIELD" />
|
||||||
</Match>
|
</Match>
|
||||||
<Match>
|
|
||||||
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
|
|
||||||
</Match>
|
|
||||||
<Match>
|
<Match>
|
||||||
<Bug pattern="UWF_NULL_FIELD" />
|
<Bug pattern="UWF_NULL_FIELD" />
|
||||||
</Match>
|
</Match>
|
||||||
|
@ -7,7 +7,6 @@ public final class Gaussian {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static ArrayList<Double> gaussian(int matSize, ArrayList<Double> matrix) {
|
public static ArrayList<Double> gaussian(int matSize, ArrayList<Double> matrix) {
|
||||||
ArrayList<Double> answerArray = new ArrayList<Double>();
|
|
||||||
int i;
|
int i;
|
||||||
int j = 0;
|
int j = 0;
|
||||||
|
|
||||||
@ -22,8 +21,7 @@ public final class Gaussian {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mat = gaussianElimination(matSize, i, mat);
|
mat = gaussianElimination(matSize, i, mat);
|
||||||
answerArray = valueOfGaussian(matSize, x, mat);
|
return valueOfGaussian(matSize, x, mat);
|
||||||
return answerArray;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Perform Gaussian elimination
|
// Perform Gaussian elimination
|
||||||
|
@ -12,7 +12,6 @@ public class GaussianTest {
|
|||||||
@Test
|
@Test
|
||||||
void passTest1() {
|
void passTest1() {
|
||||||
ArrayList<Double> list = new ArrayList<Double>();
|
ArrayList<Double> list = new ArrayList<Double>();
|
||||||
ArrayList<Double> gaussian = new ArrayList<Double>();
|
|
||||||
ArrayList<Double> answer = new ArrayList<Double>();
|
ArrayList<Double> answer = new ArrayList<Double>();
|
||||||
answer.add(0.0);
|
answer.add(0.0);
|
||||||
answer.add(1.0);
|
answer.add(1.0);
|
||||||
@ -24,8 +23,7 @@ public class GaussianTest {
|
|||||||
list.add(2.0);
|
list.add(2.0);
|
||||||
list.add(1.0);
|
list.add(1.0);
|
||||||
list.add(1.0);
|
list.add(1.0);
|
||||||
gaussian = gaussian(matrixSize, list);
|
|
||||||
|
|
||||||
assertEquals(answer, gaussian);
|
assertEquals(answer, gaussian(matrixSize, list));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user