Skip to content

Commit

Permalink
minnor adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
mitemitreski committed May 13, 2014
1 parent 79095d4 commit 836ebcf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ Map<Integer, Integer> initialized_size_bad() {

@Benchmark
Map<Integer, Integer> initialized_size_length_with_full_map() {
Map<Integer, Integer> map = null;
map = new HashMap<Integer, Integer>(1 + (int) (length / 0.75));
Map<Integer, Integer> map = new HashMap<Integer, Integer>(1 + (int) (length / 0.75));
for (Integer item : items) {
map.put(item, item);
}
Expand Down

0 comments on commit 836ebcf

Please sign in to comment.