From 02bc52037e9ccccca672d6156d9c325c74fe28b3 Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Mon, 1 Jul 2024 17:27:48 -0400 Subject: Update a whole bunch of things Yeah... not a great commit message. t.b.h, I could maybe've split the commit into more parts; but that would be quite a lot off effort and would have a pretty decent chance of at least one of the commits leaving the repository in a non-working state. For the future, will want to try and commit more often so there aren't these mega-commits where it's just "a whole bunch of stuff changed" --- .../src/test/java/net/wotonomy/foundation/NSArrayTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'projects/net.wotonomy.foundation/src/test') diff --git a/projects/net.wotonomy.foundation/src/test/java/net/wotonomy/foundation/NSArrayTest.java b/projects/net.wotonomy.foundation/src/test/java/net/wotonomy/foundation/NSArrayTest.java index e8bdbbc..98689dc 100644 --- a/projects/net.wotonomy.foundation/src/test/java/net/wotonomy/foundation/NSArrayTest.java +++ b/projects/net.wotonomy.foundation/src/test/java/net/wotonomy/foundation/NSArrayTest.java @@ -45,7 +45,7 @@ public class NSArrayTest extends TestCase { * Test method for 'net.wotonomy.foundation.NSArray.arrayBackedByList(List)' */ public void testArrayBackedByList() { - List list = new ArrayList(); + List list = new ArrayList<>(); NSArray array = NSArray.arrayBackedByList(list); assertNotNull(array); assertSame(list, array.list); @@ -63,7 +63,7 @@ public class NSArrayTest extends TestCase { * Test method for 'net.wotonomy.foundation.NSArray.NSArray(List, Object)' */ public void testNSArrayListObject() { - List list = new ArrayList(); + List list = new ArrayList<>(); NSArray array = new NSArray(list, null); assertNotNull(array); assertSame(list, array.list); @@ -131,7 +131,7 @@ public class NSArrayTest extends TestCase { * Test method for 'net.wotonomy.foundation.NSArray.NSArray(Collection)' */ public void testNSArrayCollection() { - ArrayList list = new ArrayList(); + ArrayList list = new ArrayList<>(); list.add(o1); list.add(o2); list.add(o3); @@ -164,7 +164,7 @@ public class NSArrayTest extends TestCase { */ public void testArrayByAddingObjectsFromArray() { NSArray array = new NSArray(o1); - List list = new ArrayList(); + List list = new ArrayList<>(); list.add(o2); list.add(o3); NSArray array2 = array.arrayByAddingObjectsFromArray(list); @@ -198,7 +198,7 @@ public class NSArrayTest extends TestCase { * 'net.wotonomy.foundation.NSArray.firstObjectCommonWithArray(Collection)' */ public void testFirstObjectCommonWithArray() { - ArrayList list = new ArrayList(); + ArrayList list = new ArrayList<>(); list.add(o2); list.add(o3); list.add(o4); -- cgit v1.2.3