From 48c95c4370533bf27e537cbca1e64d060a016c5f Mon Sep 17 00:00:00 2001 From: Jon Larimer Date: Thu, 29 Jan 2015 15:54:43 -0500 Subject: Fix build breakage in older branches by avoiding <> notation Change-Id: I5e3d523dac1f364f52f0d2cab479c1705d667e5a --- .../src/android/content/pm/ParceledListSliceTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/tests/coretests/src') diff --git a/core/tests/coretests/src/android/content/pm/ParceledListSliceTest.java b/core/tests/coretests/src/android/content/pm/ParceledListSliceTest.java index e7f4bad..e5a92bf 100644 --- a/core/tests/coretests/src/android/content/pm/ParceledListSliceTest.java +++ b/core/tests/coretests/src/android/content/pm/ParceledListSliceTest.java @@ -11,7 +11,7 @@ public class ParceledListSliceTest extends TestCase { public void testSmallList() throws Exception { final int objectCount = 100; - List list = new ArrayList<>(); + List list = new ArrayList(); for (int i = 0; i < objectCount; i++) { list.add(new SmallObject(i * 2, (i * 2) + 1)); } @@ -20,7 +20,7 @@ public class ParceledListSliceTest extends TestCase { Parcel parcel = Parcel.obtain(); try { - parcel.writeParcelable(new ParceledListSlice<>(list), 0); + parcel.writeParcelable(new ParceledListSlice(list), 0); parcel.setDataPosition(0); slice = parcel.readParcelable(getClass().getClassLoader()); } finally { @@ -56,7 +56,7 @@ public class ParceledListSliceTest extends TestCase { final int thresholdBytes = 256 * 1024; final int objectCount = thresholdBytes / measureLargeObject(); - List list = new ArrayList<>(); + List list = new ArrayList(); for (int i = 0; i < objectCount; i++) { list.add(new LargeObject( i * 5, @@ -71,7 +71,7 @@ public class ParceledListSliceTest extends TestCase { Parcel parcel = Parcel.obtain(); try { - parcel.writeParcelable(new ParceledListSlice<>(list), 0); + parcel.writeParcelable(new ParceledListSlice(list), 0); parcel.setDataPosition(0); slice = parcel.readParcelable(getClass().getClassLoader()); } finally { @@ -95,7 +95,7 @@ public class ParceledListSliceTest extends TestCase { * Test that only homogeneous elements may be unparceled. */ public void testHomogeneousElements() throws Exception { - List list = new ArrayList<>(); + List list = new ArrayList(); list.add(new LargeObject(0, 1, 2, 3, 4)); list.add(new SmallObject(5, 6)); list.add(new SmallObject(7, 8)); -- cgit v1.1