Fixed test incompatibility with Java5.
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 2be9918..26940bf 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -50,7 +50,7 @@
<title>Commons Math Release Notes</title>
</properties>
<body>
- <release version="3.5" date="2015-04-16" description="
+ <release version="3.5" date="2015-04-17" description="
This is a minor release: It combines bug fixes and new features.
Changes to existing features were made in a backwards-compatible
way such as to allow drop-in replacement of the v3.4.1 JAR file.
diff --git a/src/test/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSetTest.java b/src/test/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSetTest.java
index b4be154..10ae3d5 100644
--- a/src/test/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSetTest.java
+++ b/src/test/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSetTest.java
@@ -394,9 +394,15 @@
@Test
public void testFacet2Vertices() throws IOException, ParseException {
- checkError(Arrays.asList(Vector3D.ZERO, Vector3D.PLUS_I, Vector3D.PLUS_J, Vector3D.PLUS_K),
- Arrays.asList(new int[] { 0, 1, 2 }, new int[] {2, 3}),
- LocalizedFormats.WRONG_NUMBER_OF_POINTS);
+ List<Vector3D> vertices = new ArrayList<Vector3D>();
+ vertices.add(Vector3D.ZERO);
+ vertices.add(Vector3D.PLUS_I);
+ vertices.add(Vector3D.PLUS_J);
+ vertices.add(Vector3D.PLUS_K);
+ List<int[]> facets = new ArrayList<int[]>();
+ facets.add(new int[] { 0, 1, 2 });
+ facets.add(new int[] {2, 3});
+ checkError(vertices, facets, LocalizedFormats.WRONG_NUMBER_OF_POINTS);
}
private void checkError(final String resourceName, final LocalizedFormats expected) {