Skip to content
Snippets Groups Projects
Commit 1af764b1 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

Better newInstance management

parent 0fd2ac0d
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ public class SpectrumStack extends StackedData {
result = null;
} else {
// Build complete stack
result = Array.newInstance(Double.TYPE, stackFullShape);
result = ArrayUtils.newInstance(Double.TYPE, stackFullShape);
int[] position = new int[stackShape.length];
int max = position.length - 1;
while (ArrayUtils.isPosition(stackShape, position)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment