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