Skip to content

Commit

Permalink
make the method statistics concurrent, as it appears the eclipse plug…
Browse files Browse the repository at this point in the history
…in breaks the singlethreadedness rules of findbugs for #302
  • Loading branch information
mebigfatguy committed Jul 4, 2018
1 parent 9af5c06 commit c90e53d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -18,11 +18,11 @@
*/
package com.mebigfatguy.fbcontrib.collect;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import com.mebigfatguy.fbcontrib.utils.FQMethod;
import com.mebigfatguy.fbcontrib.utils.ToString;
Expand All @@ -38,7 +38,7 @@ public final class Statistics implements Iterable<Map.Entry<FQMethod, MethodInfo
private static Statistics statistics = new Statistics();
private static final MethodInfo NOT_FOUND_METHOD_INFO = new MethodInfo();

private final Map<FQMethod, MethodInfo> methodStatistics = new HashMap<>();
private final Map<FQMethod, MethodInfo> methodStatistics = new ConcurrentHashMap<>();

private final Set<String> autowiredBeans = new HashSet<>();

Expand Down

0 comments on commit c90e53d

Please sign in to comment.