From 97b54ad87ffd559893dc6555196d9e3afa756461 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Wed, 20 Jul 2011 11:35:48 +0000 Subject: [PATCH] removed Java 6 specific method git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1148709 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/math/stat/regression/MillerUpdatingRegression.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math/stat/regression/MillerUpdatingRegression.java b/src/main/java/org/apache/commons/math/stat/regression/MillerUpdatingRegression.java index 286a2320f..8805708f6 100644 --- a/src/main/java/org/apache/commons/math/stat/regression/MillerUpdatingRegression.java +++ b/src/main/java/org/apache/commons/math/stat/regression/MillerUpdatingRegression.java @@ -141,7 +141,7 @@ public class MillerUpdatingRegression implements UpdatingMultipleLinearRegressio throw new IllegalArgumentException("Length of regressor list is less that numberOfVariables"); } if (!this.hasIntercept) { - include(Arrays.copyOf(x, x.length), 1.0, y); + include(MathUtils.copyOf(x, x.length), 1.0, y); } else { double[] tmp = new double[x.length + 1]; System.arraycopy(x, 0, tmp, 1, x.length);