You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ce...@apache.org on 2012/02/08 10:07:20 UTC

svn commit: r1241824 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java

Author: celestin
Date: Wed Feb  8 09:07:20 2012
New Revision: 1241824

URL: http://svn.apache.org/viewvc?rev=1241824&view=rev
Log:
Removed invocation of Java 6 Arrays methods (MATH-732).

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java?rev=1241824&r1=1241823&r2=1241824&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java Wed Feb  8 09:07:20 2012
@@ -18,7 +18,6 @@ package org.apache.commons.math.transfor
 
 import java.io.Serializable;
 import java.lang.reflect.Array;
-import java.util.Arrays;
 
 import org.apache.commons.math.analysis.FunctionUtils;
 import org.apache.commons.math.analysis.UnivariateFunction;
@@ -28,6 +27,7 @@ import org.apache.commons.math.exception
 import org.apache.commons.math.exception.util.LocalizedFormats;
 import org.apache.commons.math.util.ArithmeticUtils;
 import org.apache.commons.math.util.FastMath;
+import org.apache.commons.math.util.MathArrays;
 
 /**
  * <p>
@@ -394,7 +394,7 @@ public class FastFourierTransformer impl
      */
     public Complex[] transform(double[] f) {
         final double[][] dataRI = new double[][] {
-            Arrays.copyOf(f, f.length), new double[f.length]
+            MathArrays.copyOf(f, f.length), new double[f.length]
         };
 
         transformInPlace(dataRI, false);
@@ -463,7 +463,7 @@ public class FastFourierTransformer impl
      */
     public Complex[] inverseTransform(double[] f) {
         final double[][] dataRI = new double[][] {
-            Arrays.copyOf(f, f.length), new double[f.length]
+            MathArrays.copyOf(f, f.length), new double[f.length]
         };
 
         transformInPlace(dataRI, true);