Removed invocations of some Java 1.6 methods (MATH-731).

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1230435 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastien Brisard 2012-01-12 08:08:29 +00:00
parent 54755f169e
commit 905a32a8f4
1 changed files with 8 additions and 2 deletions

View File

@ -100,7 +100,10 @@ public class TriangularDistributionTest extends RealDistributionAbstractTest {
// probability of zero and one, meaning the inverse returns the
// limits and not the points outside the limits.
double[] points = makeCumulativeTestValues();
return Arrays.copyOfRange(points, 1, points.length - 1);
double[] points2 = new double[points.length-2];
System.arraycopy(points, 1, points2, 0, points2.length);
return points2;
//return Arrays.copyOfRange(points, 1, points.length - 1);
}
/**
@ -113,7 +116,10 @@ public class TriangularDistributionTest extends RealDistributionAbstractTest {
// probability of zero and one, meaning the inverse returns the
// limits and not the points outside the limits.
double[] points = makeCumulativeTestPoints();
return Arrays.copyOfRange(points, 1, points.length - 1);
double[] points2 = new double[points.length-2];
System.arraycopy(points, 1, points2, 0, points2.length);
return points2;
//return Arrays.copyOfRange(points, 1, points.length - 1);
}
/** Creates the default probability density test expected values. */