Added "throw" statement.
Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/590010c7 Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/590010c7 Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/590010c7 Branch: refs/heads/feature__NUMBERS-51__field Commit: 590010c7663c06e46c21865b803e34f844e468c5 Parents: 662d201 Author: Gilles Sadowski <gil...@harfang.homelinux.org> Authored: Tue Jan 30 15:59:42 2018 +0100 Committer: Gilles Sadowski <gil...@harfang.homelinux.org> Committed: Tue Jan 30 15:59:42 2018 +0100 ---------------------------------------------------------------------- .../java/org/apache/commons/numbers/complex/ComplexUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/590010c7/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/ComplexUtils.java ---------------------------------------------------------------------- diff --git a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/ComplexUtils.java b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/ComplexUtils.java index f0b39b6..3fdd10f 100644 --- a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/ComplexUtils.java +++ b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/ComplexUtils.java @@ -987,7 +987,7 @@ public class ComplexUtils { */ public static double[][][][] complex2Interleaved(Complex[][][][] c, int interleavedDim) { if (interleavedDim > 2 || interleavedDim < 0) { - new IndexOutOfRangeException(interleavedDim); + throw new IndexOutOfRangeException(interleavedDim); } int w = c.length; int h = c[0].length; @@ -1309,7 +1309,7 @@ public class ComplexUtils { */ public static Complex[][][][] interleaved2Complex(double[][][][] i, int interleavedDim) { if (interleavedDim > 2 || interleavedDim < 0) { - new IndexOutOfRangeException(interleavedDim); + throw new IndexOutOfRangeException(interleavedDim); } final int w = i.length; final int h = i[0].length;