Map.containsKey call is sometimes unnecessary, when it's known that Map doesn't contain null values.
Instead we can just use Map.get and compare result with null.
I found one of such place, where Map.containsKey calls could be eliminated - java.time.format.ZoneName.
it gives a bit of performance for 'toZid' method.
Instead we can just use Map.get and compare result with null.
I found one of such place, where Map.containsKey calls could be eliminated - java.time.format.ZoneName.
it gives a bit of performance for 'toZid' method.