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:
parent
54755f169e
commit
905a32a8f4
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue