Skip to content

Commit

Permalink
Using diamond op in a couple of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pholser committed Jan 5, 2015
1 parent 8517c7b commit 28fe50e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -37,7 +37,7 @@ public TestArrayListGenerator() {
}

@Override public ArrayList<?> generate(SourceOfRandomness random, GenerationStatus status) {
return new ArrayList<Object>(status.size());
return new ArrayList<>(status.size());
}

@Override public int numberOfNeededComponents() {
Expand Down
Expand Up @@ -38,7 +38,7 @@ public TestHashMapGenerator() {
}

@Override public HashMap<?, ?> generate(SourceOfRandomness random, GenerationStatus status) {
return new HashMap<Object, Object>(status.size());
return new HashMap<>(status.size());
}

@Override public int numberOfNeededComponents() {
Expand Down

0 comments on commit 28fe50e

Please sign in to comment.