HashSetvBitSetTest: use diamond operator (closes #264)

Use Java 7's diamond operator to make the code a tad more elegant, as
done in the rest of the codebase.
This commit is contained in:
Allon Mureinik 2017-04-29 10:37:40 +03:00 committed by pascalschumacher
parent d61090ab64
commit c8e648b92c
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class HashSetvBitSetTest {
@Benchmark @Benchmark
public int[] testHashSet() { public int[] testHashSet() {
final HashSet<Integer> toRemove = new HashSet<Integer>(); final HashSet<Integer> toRemove = new HashSet<>();
int found = 0; int found = 0;
for (int i = 0; i < numberOfElementsToCompute; i++) { for (int i = 0; i < numberOfElementsToCompute; i++) {
toRemove.add(found++); toRemove.add(found++);