From fb56d81ec228149eb88a4c426b56b2b17dc09390 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 7 Mar 2022 15:38:34 -0500 Subject: [PATCH] Use genercis. --- .../java/org/apache/commons/lang3/reflect/FieldUtilsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/lang3/reflect/FieldUtilsTest.java b/src/test/java/org/apache/commons/lang3/reflect/FieldUtilsTest.java index 662f7114b..2c5b8e59b 100644 --- a/src/test/java/org/apache/commons/lang3/reflect/FieldUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/reflect/FieldUtilsTest.java @@ -195,7 +195,7 @@ public class FieldUtilsTest { final List fieldsInteger = Arrays.asList(Integer.class.getDeclaredFields()); final List allFieldsInteger = new ArrayList<>(fieldsInteger); allFieldsInteger.addAll(fieldsNumber); - assertEquals(new HashSet(allFieldsInteger), new HashSet(FieldUtils.getAllFieldsList(Integer.class))); + assertEquals(new HashSet<>(allFieldsInteger), new HashSet<>(FieldUtils.getAllFieldsList(Integer.class))); final List allFields = FieldUtils.getAllFieldsList(PublicChild.class); // Under Jacoco,0.8.1 and Java 10, the field count is 7. int expected = 5;