commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject commons-numbers git commit: NUMBERS-44 : throwing orphan IndexOutOfRangeException object
Date Fri, 16 Jun 2017 09:50:44 GMT
Repository: commons-numbers
Updated Branches:
  refs/heads/master c2bfc4fbf -> 6b523a37f


NUMBERS-44 : throwing orphan IndexOutOfRangeException object


Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/6b523a37
Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/6b523a37
Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/6b523a37

Branch: refs/heads/master
Commit: 6b523a37f1984c0fd7cdc7946b41fce52c0be8cc
Parents: c2bfc4f
Author: Amey Jadiye <ameyjadiye@gmail.com>
Authored: Thu Jun 15 21:58:58 2017 +0530
Committer: Amey Jadiye <ameyjadiye@gmail.com>
Committed: Thu Jun 15 21:58:58 2017 +0530

----------------------------------------------------------------------
 .../commons/numbers/complex/ComplexUtils.java       | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/6b523a37/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 1298587..1275b27 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
@@ -744,7 +744,7 @@ public class ComplexUtils {
      */
     public static double[][] complex2Interleaved(Complex[][] c, int interleavedDim) {
         if (interleavedDim > 1 || interleavedDim < 0) {
-            new IndexOutOfRangeException(interleavedDim);
+            throw new IndexOutOfRangeException(interleavedDim);
         }
         final int width = c.length;
         final int height = c[0].length;
@@ -797,7 +797,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 width = c.length;
         int height = c[0].length;
@@ -865,7 +865,7 @@ public class ComplexUtils {
      */
     public static float[][] complex2InterleavedFloat(Complex[][] c, int interleavedDim) {
         if (interleavedDim > 1 || interleavedDim < 0) {
-            new IndexOutOfRangeException(interleavedDim);
+            throw new IndexOutOfRangeException(interleavedDim);
         }
         final int width = c.length;
         final int height = c[0].length;
@@ -919,7 +919,7 @@ public class ComplexUtils {
      */
     public static float[][][] complex2InterleavedFloat(Complex[][][] c, int interleavedDim)
{
         if (interleavedDim > 2 || interleavedDim < 0) {
-            new IndexOutOfRangeException(interleavedDim);
+            throw new IndexOutOfRangeException(interleavedDim);
         }
         final int width = c.length;
         final int height = c[0].length;
@@ -987,7 +987,7 @@ public class ComplexUtils {
      */
     public static Complex[][] interleaved2Complex(double[][] d, int interleavedDim) {
         if (interleavedDim > 1 || interleavedDim < 0) {
-            new IndexOutOfRangeException(interleavedDim);
+            throw new IndexOutOfRangeException(interleavedDim);
         }
         final int width = d.length;
         final int height = d[0].length;
@@ -1036,7 +1036,7 @@ public class ComplexUtils {
      */
     public static Complex[][][] interleaved2Complex(double[][][] d, int interleavedDim) {
         if (interleavedDim > 2 || interleavedDim < 0) {
-            new IndexOutOfRangeException(interleavedDim);
+            throw new IndexOutOfRangeException(interleavedDim);
         }
         final int width = d.length;
         final int height = d[0].length;
@@ -1099,7 +1099,7 @@ public class ComplexUtils {
      */
     public static Complex[][] interleaved2Complex(float[][] d, int interleavedDim) {
         if (interleavedDim > 1 || interleavedDim < 0) {
-            new IndexOutOfRangeException(interleavedDim);
+            throw new IndexOutOfRangeException(interleavedDim);
         }
         final int width = d.length;
         final int height = d[0].length;
@@ -1148,7 +1148,7 @@ public class ComplexUtils {
      */
     public static Complex[][][] interleaved2Complex(float[][][] d, int interleavedDim) {
         if (interleavedDim > 2 || interleavedDim < 0) {
-            new IndexOutOfRangeException(interleavedDim);
+            throw new IndexOutOfRangeException(interleavedDim);
         }
         final int width = d.length;
         final int height = d[0].length;


Mime
View raw message