TDWTF: Reverse Lookup Hashtable?

A hashtable was created. But the .get() method was never called. Instead, all lookups went through the entrySet iterator. Meaning, you were trying to lookup the KEY from the VALUE.

The put parameters should be reversed.

Leave a Reply

Your email address will not be published. Required fields are marked *