This doesn't do what you think it does

I’ve seen this one countless times. == on a string isn’t the same as .equals; one compares the instance and the other compares the content.

if (localeCode == null || localeCode.trim().isEmpty() || localeCode == "?")

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.