diff --git a/src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java b/src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java index cafb298a4..97fe71492 100644 --- a/src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java +++ b/src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java @@ -39,7 +39,7 @@ public class HashSetvBitSetTest { @Benchmark public int[] testHashSet() { - final HashSet toRemove = new HashSet(); + final HashSet toRemove = new HashSet<>(); int found = 0; for (int i = 0; i < numberOfElementsToCompute; i++) { toRemove.add(found++);