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