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:
parent
d61090ab64
commit
c8e648b92c
|
@ -39,7 +39,7 @@ public class HashSetvBitSetTest {
|
|||
|
||||
@Benchmark
|
||||
public int[] testHashSet() {
|
||||
final HashSet<Integer> toRemove = new HashSet<Integer>();
|
||||
final HashSet<Integer> toRemove = new HashSet<>();
|
||||
int found = 0;
|
||||
for (int i = 0; i < numberOfElementsToCompute; i++) {
|
||||
toRemove.add(found++);
|
||||
|
|
Loading…
Reference in New Issue