commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From celes...@apache.org
Subject svn commit: r1241824 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java
Date Wed, 08 Feb 2012 09:07:20 GMT
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);



Mime
View raw message