- private void updateStatistics(String entityType, String candidateName, long count){
- Map<String, Long> m = statistics.get(entityType);
- if(m == null){
- m = new TrieMap<>();
- m.put(candidateName, count);
- statistics.put(entityType, m);
+ private void updateStatistics(final String entityType, final String candidateName, final long count) {
+ TrieMap<String, Long> map = statistics.get(entityType);
+ if (map == null) {
+ map = TrieMap.create();
+ map.put(candidateName, count);
+ statistics.put(entityType, map);