[tor-commits] [collector/master] Use Map.putIfAbsent and Map.getOrDefault where possible.