Skip to content
Browse files

minnor adjustment

  • Loading branch information...
1 parent 79095d4 commit 836ebcfcb09afb686984a94e02219ad79246714b @mitemitreski committed May 13, 2014
View
3 ...mance-tests/src/main/java/com/mitemitreski/blog/performace/java/HashMapSizeBenchmark.java
@@ -104,8 +104,7 @@ void setUp() {
@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);
}

0 comments on commit 836ebcf

Please sign in to comment.
Something went wrong with that request. Please try again.