If it’s not threadsafe, just don’t try
I recently got burnt by this at work. Even though I knew HashMap isn’t threadsafe it was apparently working and rewriting to not use HashMap was work I didn’t have time for now and was scheduled for later. It appeared to be working because, whenever I printed out all the keys and values in the [...]