Avoid This Common Java Mistake: Never Mutate HashMap Keys

Why mutating keys in HashMap breaks your code and how to prevent it